diff options
| author | Di Peng | 2011-06-14 17:06:50 -0700 |
|---|---|---|
| committer | Di Peng | 2011-06-15 09:20:22 -0700 |
| commit | d428c9910e66246c2af46602499acaeaf187d75b (patch) | |
| tree | 353c60b803a98353ff02c83158ae72c4043c44e4 | |
| parent | f8529672f6fc4610b8ea005383812c597b829187 (diff) | |
| download | angular.js-d428c9910e66246c2af46602499acaeaf187d75b.tar.bz2 | |
Replaced double line break with single when text is fetched from Google Docs
Closes #384
| -rwxr-xr-x | gdocs.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); } ); |
