Skip to content

Commit d428c99

Browse files
author
Di Peng
committed
Replaced double line break with single when text is fetched from Google Docs
Closes angular#384
1 parent f852967 commit d428c99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gdocs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ function download(collection, name, url) {
8585

8686

8787
data = data + '\n';
88+
89+
//this should be a bug in Google Doc API, hence need to remove this once the bug is fixed
90+
data = data.replace(/\n\n/g, '\n');
91+
8892
fs.writeFileSync('docs/content/' + collection + '/' + name, reflow(data, 100));
8993
}
9094
);

0 commit comments

Comments
 (0)