changeset 1272:4c4ee1f25e9f

do not strip text item data, fixes #129
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 26 Feb 2012 18:33:28 +0100
parents 4d7106a88369
children c5432dbae81c 8c275efc6e8c
files MoinMoin/items/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Feb 26 00:17:12 2012 +0100
+++ b/MoinMoin/items/__init__.py	Sun Feb 26 18:33:28 2012 +0100
@@ -1178,7 +1178,7 @@
         from MoinMoin.apps.frontend.views import CommentForm
         class ModifyForm(CommentForm):
             meta_text = String.using(optional=False).with_properties(placeholder=L_("MetaData (JSON)")).validated_by(ValidJSON())
-            data_text = String.using(optional=True).with_properties(placeholder=L_("Type your text here"))
+            data_text = String.using(strip=False, optional=True).with_properties(placeholder=L_("Type your text here"))
             data_file = FileStorage.using(optional=True, label=L_('Upload file:'))
 
         if request.method == 'GET':