changeset 5530:970d94ea19f2

user profile saving, eliminate lineseps in keys/values
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 13 Feb 2010 18:00:59 +0100
parents 232cad689a08
children a7838f68fbcd
files MoinMoin/user.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Sat Feb 13 17:51:48 2010 +0100
+++ b/MoinMoin/user.py	Sat Feb 13 18:00:59 2010 +0100
@@ -613,8 +613,9 @@
             elif isinstance(value, dict):
                 key += '{}'
                 value = encodeDict(value)
-            line = u"%s=%s\n" % (key, unicode(value))
-            data.write(line)
+            line = u"%s=%s" % (key, unicode(value))
+            line = line.replace('\n', ' ').replace('\r', ' ') # no lineseps
+            data.write(line + '\n')
         data.close()
 
         arena = 'user'