aboutsummaryrefslogtreecommitdiffstats
path: root/gdocs.js
diff options
context:
space:
mode:
Diffstat (limited to 'gdocs.js')
-rwxr-xr-xgdocs.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdocs.js b/gdocs.js
index 4507931d..82bd3df4 100755
--- a/gdocs.js
+++ b/gdocs.js
@@ -64,6 +64,11 @@ function download(name, url) {
// strip out all text annotations
data = data.replace(/\[\w{1,3}\]/mg, '');
+ // fix smart-quotes
+ data = data.replace(/[“”]/g, '"');
+ data = data.replace(/[‘’]/g, "'");
+
+
data = data + '\n';
fs.writeFileSync('docs/' + name, reflow(data, 100));
}