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;