changeset 2850:8a5c932ad8ab

text_html_text_moin_wiki: added unsupported tags to process_inline
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 20 Sep 2007 19:33:05 +0200
parents 9ed226998cce
children fe477591e2c0
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Thu Sep 20 19:25:05 2007 +0200
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Thu Sep 20 19:33:05 2007 +0200
@@ -736,6 +736,10 @@
         if name is None:
             return
 
+        # unsupported tags
+        if name in (u'title', u'meta', u'style'):
+            return
+
         if name in ('h1', 'h2', 'h3', 'h4', 'h5', 'h6', ): # headers are not allowed here (e.g. inside a ul li),
             text = self.node_list_text_only(node.childNodes).strip() # but can be inserted via the editor
             self.text.append(text)                          # so we just drop the header markup and keep the text