gdocs.js should add dropped leading space

This commit is contained in:
Igor Minar
2011-02-22 17:41:40 -08:00
parent eea0de6db4
commit a7ee4a8884

View File

@@ -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, '');