mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
gdocs.js should add dropped leading space
This commit is contained in:
parent
eea0de6db4
commit
a7ee4a8884
1 changed files with 1 additions and 0 deletions
1
gdocs.js
1
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, '');
|
||||
|
|
|
|||
Loading…
Reference in a new issue