changeset 645:8da03e8daeb0

fix vanishing strike markup after gui editor usage (backport to 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 15 May 2006 19:05:04 +0200
parents 7bf4afe634ed
children 8f87d9e95995
files MoinMoin/converter/text_html_text_x_moin.py docs/CHANGES
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_x_moin.py	Sat May 13 01:22:13 2006 +0200
+++ b/MoinMoin/converter/text_html_text_x_moin.py	Mon May 15 19:05:04 2006 +0200
@@ -779,8 +779,13 @@
 
     def process_span(self, node):
         # ignore span tags - just descend
+        is_strike = node.getAttribute("class") == "strike"
+        if is_strike:
+            self.text.append("--(")
         for i in node.childNodes:
             self.process_inline(i)
+        if is_strike:
+            self.text.append(")--")
 
     def process_div(self, node):
         # ignore div tags - just descend
--- a/docs/CHANGES	Sat May 13 01:22:13 2006 +0200
+++ b/docs/CHANGES	Mon May 15 19:05:04 2006 +0200
@@ -58,6 +58,7 @@
   Bugfixes:
     * on action "info" page, "revert" link will not be displayed for empty page
       revisions (but you just can delete the current page to get an empty rev.)
+    * fix vanishing strike markup after gui editor usage
 
 Version 1.5.current:
   Developer notes: