Revert "Removed unnecessary call to rstrip."
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 10 Mar 2014 20:56:36 +0000 (20:56 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 10 Mar 2014 20:56:36 +0000 (20:56 +0000)
rstrip removes whitespace at the right hand side of empty table values.

git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1923 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/mwmarkup.py

index ca9a87fa947d537778d5407e225837a850a3c660..aa758ceeece6d27464cfb412c90fe6029fec0905 100644 (file)
@@ -116,7 +116,9 @@ class TemplateValidator(formencode.FancyValidator):
         for k, v in named_params.iteritems():
             if self.as_table:
                 k = k.ljust(as_table_keylen)
-            parts.append(k + equal_char + v)
+                parts.append((k + equal_char + v).rstrip())
+            else:
+                parts.append(k + equal_char + v)
         return pipe_char.join(parts) + end_char