aboutsummaryrefslogtreecommitdiffstats
path: root/gdocs.js
diff options
context:
space:
mode:
Diffstat (limited to 'gdocs.js')
-rwxr-xr-xgdocs.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdocs.js b/gdocs.js
index 7c7f335b..4e5c2ee0 100755
--- a/gdocs.js
+++ b/gdocs.js
@@ -57,6 +57,7 @@ function download(name, url) {
function(data){
data = data.replace('\ufeff', '');
data = data.replace(/\r\n/mg, '\n');
+ data = data.replace(/^ /mg, ' '); //for some reason gdocs drop first space for indented lines
// strip out all text annotation comments
data = data.replace(/^\[a\][\S\s]*/m, '');