wml tools GUI: exclude the double endline at the end of the file when exporting as text

This commit is contained in:
Elvish_Hunter 2015-02-10 11:18:49 +01:00
parent 63cac8ec70
commit b337e13070

View file

@ -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: