changeset 4124:a6f8071cfbe1

GUI editor converter: fix processing of table caption
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 21 Sep 2008 19:21:07 +0200
parents d15389e4b4a9
children 8662bba9e431
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Sun Sep 21 11:18:21 2008 +0200
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Sun Sep 21 19:21:07 2008 +0200
@@ -1135,7 +1135,9 @@
             colspan = 1
         text = self.node_list_text_only(node.childNodes).replace('\n', ' ').strip()
         if text:
-            self.text.extend(["%s'''%s%s'''||" % ('||' * colspan, style, text), self.new_line_dont_remove])
+            if style:
+                style = '<%s>' % style
+            self.text.extend(["%s%s'''%s'''||" % ('||' * colspan, style, text), self.new_line_dont_remove])
 
     def process_table_data(self, node, style=""):
         if node.hasAttribute("colspan"):