Skip to content

Commit

Permalink
wml tools GUI: exclude the double endline at the end of the file when…
Browse files Browse the repository at this point in the history
… exporting as text
  • Loading branch information
Elvish-Hunter committed Feb 10, 2015
1 parent 63cac8e commit b337e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tools/GUI.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b337e13

Please sign in to comment.