reassign 446195 moin
found 446195 1.8.2-2
title 446195 moin: no newlines in tables edited with the gui-editor
forwarded 446195 http://moinmo.in/MoinMoinBugs/GuiEditorDontAllowBrInTables
--

> When using the GUI-Editor, it is possible to make a Table which contents more 
> than one Line. But when watching 
> the preview or switching to the Text-Editor, these newlines are removed by 
> Whitespaces and the tables 
> themselves are broken.

I have submitted a patch upstream to fix this bug (it's attached too).

Franklin
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	2009-03-01 17:47:50.000000000 +0100
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	2009-03-01 17:47:55.000000000 +0100
@@ -1154,9 +1154,14 @@
             self.text.append("<%s>" % style)
 
         found = False
+        c = 0
         for i in node.childNodes:
             name = i.localName
             if name == 'p':
+                c += 1
+                # Moin don't support multiple paragraph inside a table. simulate it with a br.
+                if (c > 1):
+                        self.text.append('<<BR>>')
                 self.process_paragraph_item(i)
                 self.text.append(self.white_space)
                 found = True

Reply via email to