changeset 258:5129ca4f97a7

converter: just ignore font elements imported from: moin--main--1.5--patch-261
author Thomas Waldmann <tw@waldmann-edv.de>
date Wed, 30 Nov 2005 18:46:53 +0000
parents 133d6a826da2
children 0c25ccdc8f37
files MoinMoin/converter/text_html_text_x_moin.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_x_moin.py	Tue Nov 29 22:35:54 2005 +0000
+++ b/MoinMoin/converter/text_html_text_x_moin.py	Wed Nov 30 18:46:53 2005 +0000
@@ -699,6 +699,8 @@
             command = ",,"
         elif name == 'sup':
             command = "^"
+        elif name == 'font':
+            command = "" # just throw away font settings
         elif 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