1. pjhades
  2. moin-2.0

Commits

Thomas Waldmann  committed 4c4ee1f

do not strip text item data, fixes #129

  • Participants
  • Parent commits 4d7106a
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/items/__init__.py

View file
         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':