Merge pull request #1350 from rgriffith/snippet_newline_fix
Fix newlines for text files
This commit is contained in:
commit
e0a2d5688c
1 changed files with 1 additions and 2 deletions
|
|
@ -472,8 +472,7 @@ var detectTextModules = function(input, source) {
|
|||
var module = source.isLocation ? source.path : source;
|
||||
|
||||
input = input.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
||||
input = input.replace(/\n\s+/g, "\n");
|
||||
input = '"' + input.replace(/\r?\n/g, '\\\n') + '"';
|
||||
input = '"' + input.replace(/\r?\n/g, '\\n') + '"';
|
||||
textModules[module] = input;
|
||||
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue