Skip to content

Commit

Permalink
Fixing newline character for text files
Browse files Browse the repository at this point in the history
This addressed an issue where the newlines generated when including snippet files does not contain newline characters, this causes SnippetManager.parseSnippetFile to always return empty.

Instead, of creating actual newlines and a multiline string with \, this adds newline characters.
  • Loading branch information
rgriffith committed Apr 5, 2013
1 parent 202ecaa commit 7dcd7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.dryice.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ var detectTextModules = function(input, 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 "";
Expand Down

0 comments on commit 7dcd7c0

Please sign in to comment.