Merge pull request #1350 from rgriffith/snippet_newline_fix

Fix newlines for text files
This commit is contained in:
Harutyun Amirjanyan 2013-04-06 05:10:19 -07:00
commit e0a2d5688c

View file

@ -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 "";