Commit 26a1ac46 authored by Guido van Rossum's avatar Guido van Rossum

Add trailing newline when saving.

parent 48123b26
......@@ -111,6 +111,8 @@ class WikiPage:
try:
f = open(self.mkfile(), "w")
f.write(data)
if data and not data.endswith('\n'):
f.write('\n')
f.close()
return ""
except IOError, err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment