diff --git a/gdocs.js b/gdocs.js index 4e8048f0a430..3d60756e1e76 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)); } );