changeset 294:3cbbedfb89af

converter: handle thead and tfoot tags imported from: moin--main--1.5--patch-298
author Thomas Waldmann <tw@waldmann-edv.de>
date Mon, 05 Dec 2005 22:50:34 +0000
parents 239cd0931e6b
children 91d47ebee530
files MoinMoin/converter/text_html_text_x_moin.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_x_moin.py	Mon Dec 05 18:28:06 2005 +0000
+++ b/MoinMoin/converter/text_html_text_x_moin.py	Mon Dec 05 22:50:34 2005 +0000
@@ -916,7 +916,7 @@
                 if name == 'tr':
                     self.process_table_record(i, style)
                     style = ""
-                elif name == 'tbody':
+                elif name in ('thead', 'tbody', 'tfoot'):
                     self.process_table(i, style)
                 elif name == 'caption':
                     self.process_caption(node, i, style)
@@ -930,7 +930,8 @@
     def process_caption(self, table, node, style=""):
         # get first row
         for i in table.childNodes:
-            if i.localName == 'tbody':
+            if i.localName in ('thead', 'tbody', 'tfoot'): # XXX is this correct?
+            #if i.localName == 'tbody': (old version)
                 for i in i.childNodes:
                     if i.localName == 'tr':
                         break