Prechádzať zdrojové kódy

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

bel 10 rokov pred
rodič
commit
a7bd699f48
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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")