Revert "Removed unnecessary call to rstrip."
[philipp/winterrodeln/wrpylib.git] / 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