mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
Replaced double line break with single when text is fetched from Google Docs
Closes #384
This commit is contained in:
4
gdocs.js
4
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));
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user