diff options
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/cgi/cgi3.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/cgi/cgi3.py b/Demo/cgi/cgi3.py index 9aad3a0..205f63d 100755 --- a/Demo/cgi/cgi3.py +++ b/Demo/cgi/cgi3.py @@ -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: |