Fix wmlindent writing CRLF end of lines on windows.
Its documentation says it converts to LF. Also, my wesnoth+windows experience says it is best to use always only LF no matter what OS. For WML at least. And I dont wanna convert back each time.
This commit is contained in:
parent
02ce7d1f5f
commit
f1a2eb07d1
1 changed files with 2 additions and 2 deletions
|
@ -252,8 +252,8 @@ def convertor(linefilter, arglist, exclude):
|
|||
continue
|
||||
else:
|
||||
try:
|
||||
infp = open(filename, "r")
|
||||
outfp = open(filename + ".out", "w")
|
||||
infp = open(filename, "rb")
|
||||
outfp = open(filename + ".out", "wb")
|
||||
linefilter(filename, infp, outfp)
|
||||
infp.close()
|
||||
outfp.close()
|
||||
|
|
Loading…
Add table
Reference in a new issue