From f1a2eb07d101bfb7c881cef60dd963ebbfedb284 Mon Sep 17 00:00:00 2001 From: Anonymissimus Date: Sat, 14 Jan 2012 17:07:58 +0000 Subject: [PATCH] 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. --- data/tools/wmlindent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/tools/wmlindent b/data/tools/wmlindent index caeaada5580..3281ec36eda 100755 --- a/data/tools/wmlindent +++ b/data/tools/wmlindent @@ -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()