comparison MoinMoin/converter/text_html_text_moin_wiki.py @ 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 4780e4b6e99d
children 8662bba9e431
comparison
equal deleted inserted replaced
4123:d15389e4b4a9 4124:a6f8071cfbe1
1133 colspan += 1 1133 colspan += 1
1134 else: 1134 else:
1135 colspan = 1 1135 colspan = 1
1136 text = self.node_list_text_only(node.childNodes).replace('\n', ' ').strip() 1136 text = self.node_list_text_only(node.childNodes).replace('\n', ' ').strip()
1137 if text: 1137 if text:
1138 self.text.extend(["%s'''%s%s'''||" % ('||' * colspan, style, text), self.new_line_dont_remove]) 1138 if style:
1139 style = '<%s>' % style
1140 self.text.extend(["%s%s'''%s'''||" % ('||' * colspan, style, text), self.new_line_dont_remove])
1139 1141
1140 def process_table_data(self, node, style=""): 1142 def process_table_data(self, node, style=""):
1141 if node.hasAttribute("colspan"): 1143 if node.hasAttribute("colspan"):
1142 colspan = int(node.getAttribute("colspan")) 1144 colspan = int(node.getAttribute("colspan"))
1143 else: 1145 else: