changeset 2902:a900b2f20fb7

text_html_text_moin_wiki: an empty formatted cell of a pasted table should not be saved as a formatted br
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 28 Oct 2007 09:22:09 +0100
parents 5cd9d4c041b9
children 3cbfe3edd7ed
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Sun Oct 28 09:19:40 2007 +0100
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Sun Oct 28 09:22:09 2007 +0100
@@ -799,7 +799,9 @@
 
         self.text.append(command)
         for i in node.childNodes:
-            self.process_inline(i)
+            # formatted br is not wanted
+            if command and i.localName != 'br':
+                self.process_inline(i)
         if command_close:
             command = command_close
         self.text.append(command)