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:
Anonymissimus 2012-01-14 17:07:58 +00:00
parent 02ce7d1f5f
commit f1a2eb07d1

View file

@ -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()