aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));
}
);