Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Removed double line break from Google docs #391

Merged
merged 1 commit into from
Jun 16, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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