Skip to content

Commit

Permalink
Replaced double line break with single when text is fetched from Goog…
Browse files Browse the repository at this point in the history
…le Docs

Closes angular#384
  • Loading branch information
Di Peng committed Jun 15, 2011
1 parent f852967 commit d428c99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gdocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
);
Expand Down

0 comments on commit d428c99

Please sign in to comment.