ソースを参照

Omit carriage returns

Fixes #156
tags/0.5.1
Michael Jackson 14年前
コミット
8320730ea9
1個のファイルの変更3行の追加0行の削除
  1. +3
    -0
      mustache.js

+ 3
- 0
mustache.js ファイルの表示

@@ -404,6 +404,9 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
nonSpace = true; nonSpace = true;
code.push("\\" + c); code.push("\\" + c);
break; break;
case "\r":
// Ignore carriage returns.
break;
case "\n": case "\n":
spaces.push(code.length); spaces.push(code.length);
code.push("\\n"); code.push("\\n");


読み込み中…
キャンセル
保存