Explorar el Código

Omit carriage returns

Fixes #156
tags/0.5.1
Michael Jackson hace 14 años
padre
commit
8320730ea9
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      mustache.js

+ 3
- 0
mustache.js Ver fichero

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


Cargando…
Cancelar
Guardar