hooks/notification.py
changeset 3023 7864fee8b4ec
parent 2900 9d65e0350aa1
child 3072 6fb42c53f6df
--- a/hooks/notification.py	Fri Aug 21 16:26:20 2009 +0200
+++ b/hooks/notification.py	Wed Aug 26 14:45:56 2009 +0200
@@ -47,9 +47,10 @@
         if view is None:
             return
         comment = entity.printable_value('comment', format='text/plain')
-        if comment:
-            comment = normalize_text(comment, 80,
-                                     rest=entity.comment_format=='text/rest')
+        # XXX don't try to wrap rest until we've a proper transformation (see
+        # #103822)
+        if comment and entity.comment_format != 'text/rest':
+            comment = normalize_text(comment, 80)
         RenderAndSendNotificationView(self._cw, view=view, viewargs={
             'comment': comment, 'previous_state': entity.previous_state.name,
             'current_state': entity.new_state.name})