mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
Replaced double line break with single when text is fetched from Google Docs
Closes #384
This commit is contained in:
parent
f8529672f6
commit
d428c9910e
1 changed files with 4 additions and 0 deletions
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));
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue