浏览代码

Do not change line endings to \r\n on Windows

bel 10 年之前
父节点
当前提交
a7bd699f48
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/cleanup.lua

+ 1 - 1
resources/cleanup.lua

@@ -56,7 +56,7 @@ print("Tabs converted to spaces: " .. tostring(tabspace))
 print("Invalid characters:       " .. tostring(invalid))
 
 if changed then
-    local f = io.open(clean, "w")
+    local f = io.open(clean, "wb")
     for i=1,#newfile do
         f:write(newfile[i])
         f:write("\n")