From: philipp Date: Mon, 10 Mar 2014 20:56:36 +0000 (+0000) Subject: Revert "Removed unnecessary call to rstrip." X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/af28c99facb89d6faa283010aa33b37b707454b2?ds=sidebyside Revert "Removed unnecessary call to rstrip." 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 --- diff --git a/wrpylib/mwmarkup.py b/wrpylib/mwmarkup.py index ca9a87f..aa758ce 100644 --- a/wrpylib/mwmarkup.py +++ b/wrpylib/mwmarkup.py @@ -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