aboutsummaryrefslogtreecommitdiffstats
path: root/gdocs.js
diff options
context:
space:
mode:
authorDi Peng2011-06-14 17:06:50 -0700
committerDi Peng2011-06-15 09:20:22 -0700
commitd428c9910e66246c2af46602499acaeaf187d75b (patch)
tree353c60b803a98353ff02c83158ae72c4043c44e4 /gdocs.js
parentf8529672f6fc4610b8ea005383812c597b829187 (diff)
downloadangular.js-d428c9910e66246c2af46602499acaeaf187d75b.tar.bz2
Replaced double line break with single when text is fetched from Google Docs
Closes #384
Diffstat (limited to 'gdocs.js')
-rwxr-xr-xgdocs.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdocs.js b/gdocs.js
index 4e8048f0..3d60756e 100755
--- a/gdocs.js
+++ b/gdocs.js
@@ -85,6 +85,10 @@ function download(collection, name, url) {
data = data + '\n';
+
+ //this should be a bug in Google Doc API, hence need to remove this once the bug is fixed
+ data = data.replace(/\n\n/g, '\n');
+
fs.writeFileSync('docs/content/' + collection + '/' + name, reflow(data, 100));
}
);