diff MoinMoin/items/__init__.py @ 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 1c66f39aa44f
children c5432dbae81c 25a7e9e2b9b7
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':