gdocs.js should strip trailing whitespace in imported docs

This commit is contained in:
Igor Minar 2011-02-22 15:09:33 -08:00
parent fe743e31f8
commit 08e3b1edbb

View file

@ -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;