changeset 2901:5cd9d4c041b9

text_html_text_moin_wiki: linebreak in table cell should be written into wiki text as <<BR>>
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 28 Oct 2007 09:19:40 +0100
parents 5a3037bd131a
children a900b2f20fb7
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Oct 23 20:23:51 2007 +0200
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Sun Oct 28 09:19:40 2007 +0100
@@ -1067,12 +1067,15 @@
                 found = True
         if not found:
             for i in node.childNodes:
+                name = i.localName
                 if i.nodeType == Node.ELEMENT_NODE:
                     if name == 'br':
-                        # if we get a br for an empty cell from e.g. cut and paste from OOo
-                        # to the gui it should be appended as white_space.
-                        self.text.append(self.white_space)
+                        # if we get a br for a cell from e.g. cut and paste from OOo
+                        # or if someone simulates a list by enter in a cell
+                        # it should be appended as macro BR.
+                        self.text.append('<<BR>>')
                         found = True
+                        continue
                     else:
                         self.process_inline(i)
                         found = True