瀏覽代碼

- remove \r\n

Laurent Bedubourg 17 年之前
父節點
當前提交
99521abbea
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      std/mtwin/templo/Template.hx

+ 3 - 0
std/mtwin/templo/Template.hx

@@ -85,6 +85,9 @@ class Template {
 		if (StringTools.startsWith(src, "\xEF\xBB\xBF"))
 			src = src.substr(3);
 
+		str = StringTools.replace(src, "\r\n", "\n");
+		str = StringTools.replace(src, "\r", "\n");
+
 		src = mtwin.templo.Preprocessor.process(src);
 
 		var path = nekoSrc(id);