Browse Source

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

bel 10 years ago
parent
commit
a7bd699f48
1 changed files with 1 additions and 1 deletions
  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))
 print("Invalid characters:       " .. tostring(invalid))
 
 
 if changed then
 if changed then
-    local f = io.open(clean, "w")
+    local f = io.open(clean, "wb")
     for i=1,#newfile do
     for i=1,#newfile do
         f:write(newfile[i])
         f:write(newfile[i])
         f:write("\n")
         f:write("\n")