X Tutup
Skip to content

Commit a7ee4a8

Browse files
committed
gdocs.js should add dropped leading space
1 parent eea0de6 commit a7ee4a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gdocs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ function download(name, url) {
5757
function(data){
5858
data = data.replace('\ufeff', '');
5959
data = data.replace(/\r\n/mg, '\n');
60+
data = data.replace(/^ /mg, ' '); //for some reason gdocs drop first space for indented lines
6061

6162
// strip out all text annotation comments
6263
data = data.replace(/^\[a\][\S\s]*/m, '');

0 commit comments

Comments
 (0)
X Tutup