From 08e3b1edbb2923ad18c840c55eb95a14ab308daf Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 22 Feb 2011 15:09:33 -0800 Subject: gdocs.js should strip trailing whitespace in imported docs --- gdocs.js | 1 + 1 file changed, 1 insertion(+) (limited to 'gdocs.js') diff --git a/gdocs.js b/gdocs.js index 82bd3df4..7c7f335b 100755 --- a/gdocs.js +++ b/gdocs.js @@ -189,6 +189,7 @@ function reflow(text, margin) { var col = 0; var reflowLine = ''; function flush(){ + reflowLine = reflowLine.replace(/\s*$/, ''); lines.push(reflowLine); reflowLine = ''; col = 0; -- cgit v1.2.3