瀏覽代碼

- remove \r\n

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

+ 2 - 2
std/mtwin/templo/Template.hx

@@ -85,8 +85,8 @@ 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 = StringTools.replace(src, "\r\n", "\n");
+		src = StringTools.replace(src, "\r", "\n");
 
 		src = mtwin.templo.Preprocessor.process(src);