From a7ee4a88848887aa5ea0807380f4ba759444a7ec Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 22 Feb 2011 17:41:40 -0800 Subject: gdocs.js should add dropped leading space --- gdocs.js | 1 + 1 file changed, 1 insertion(+) (limited to 'gdocs.js') 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, ''); -- cgit v1.2.3