From b337e13070ec1105e40d355533e0e1d8abadd469 Mon Sep 17 00:00:00 2001 From: Elvish_Hunter Date: Tue, 10 Feb 2015 11:18:49 +0100 Subject: [PATCH] wml tools GUI: exclude the double endline at the end of the file when exporting as text --- data/tools/GUI.pyw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/tools/GUI.pyw b/data/tools/GUI.pyw index 16e3fd2db35..0ee78cfbc42 100755 --- a/data/tools/GUI.pyw +++ b/data/tools/GUI.pyw @@ -1138,7 +1138,7 @@ Error code: {1}""".format(queue_item[0],queue_item[1])) if fn: try: out=codecs.open(fn,"w","utf-8") - out.write(self.text.get(1.0,END)) + out.write(self.text.get(1.0,END)[:-1]) # exclude the double endline at the end out.close() except IOError as error: # in case that we attempt to write without permissions showerror("Error","""Error while writing to: