aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2011-02-22 15:09:33 -0800
committerIgor Minar2011-02-22 15:09:44 -0800
commit08e3b1edbb2923ad18c840c55eb95a14ab308daf (patch)
treebb2490dec4aea6488dca73a3141dfe6ec3bda4e1
parentfe743e31f8114aa17aedddeea9753fb5afeb6251 (diff)
downloadangular.js-08e3b1edbb2923ad18c840c55eb95a14ab308daf.tar.bz2
gdocs.js should strip trailing whitespace in imported docs
-rwxr-xr-xgdocs.js1
1 files changed, 1 insertions, 0 deletions
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;