Replaced double line break with single when text is fetched from Google Docs

Closes #384
This commit is contained in:
Di Peng 2011-06-14 17:06:50 -07:00
parent f8529672f6
commit d428c9910e

View file

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