Skip to content

Commit 8320730

Browse files
committed
Omit carriage returns
Fixes janl#156
1 parent b603a10 commit 8320730

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mustache.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
404404
nonSpace = true;
405405
code.push("\\" + c);
406406
break;
407+
case "\r":
408+
// Ignore carriage returns.
409+
break;
407410
case "\n":
408411
spaces.push(code.length);
409412
code.push("\\n");

0 commit comments

Comments
 (0)