diff --git a/mustache.js b/mustache.js index 68a0ff2..b71f325 100644 --- a/mustache.js +++ b/mustache.js @@ -404,6 +404,9 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {}; nonSpace = true; code.push("\\" + c); break; + case "\r": + // Ignore carriage returns. + break; case "\n": spaces.push(code.length); code.push("\\n");