changeset 1757:d4f3fc3f0afc

gui converter: don't crash on col/colgroup/meta/a (ported from 1.5-788)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 30 Jan 2007 21:07:19 +0100
parents 402275b0dac7
children 4b85e6506535
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Jan 30 12:43:31 2007 +0100
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Jan 30 21:07:19 2007 +0100
@@ -725,6 +725,8 @@
                     self.process_list(i)
                 elif name == 'dl':
                     self.process_dl(i)
+                elif name == 'a':
+                    self.process_a(i)
                 elif name == 'img':
                     self.process_img(i)
                 elif name == 'div':
@@ -779,8 +781,8 @@
             command = ",,"
         elif name == 'sup':
             command = "^"
-        elif name == 'font':
-            command = "" # just throw away font settings
+        elif name in ('font', 'meta', ):
+            command = "" # just throw away unsupported elements
         else:
             raise ConvertError("process_inline: Don't support %s element" % name)
 
@@ -995,6 +997,8 @@
                 elif name == 'caption':
                     self.process_caption(node, i, style)
                     style = ''
+                elif name  in ('col', 'colgroup', ):
+                    pass # we don't support these, but we just ignore them
                 else:
                     raise ConvertError("process_table: Don't support %s element" % name)
             #else: