Description
An indented table becomes broken after edited by the gui editor
e.g.
||A ||B || ||A ||B ||
A
B
A
B
becomes after editing with the gui editor
||A ||B || ||A ||B ||
A
B
A
B
Component selection
- text_html_text_moin_wiki
Details
MoinMoin Version |
1.8.1 |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Discussion
1 diff -r fecec62aa2a7 MoinMoin/converter/text_html_text_moin_wiki.py
2 --- a/MoinMoin/converter/text_html_text_moin_wiki.py Sun Jan 18 12:54:54 2009 +0100
3 +++ b/MoinMoin/converter/text_html_text_moin_wiki.py Sun Jan 18 22:31:53 2009 +0100
4 @@ -614,6 +614,7 @@
5 if i.nodeType == Node.ELEMENT_NODE:
6 if i.localName == 'table':
7 markup = " "
8 + indent = " "
9 else:
10 markup = "* "
11 elif name == 'dl':
12 @@ -649,7 +650,10 @@
13 name = i.localName
14 if name == 'li':
15 before, indent, markup = self._get_list_item_markup(node, i)
16 - self.text.extend([before, indent, markup])
17 + if markup == " ": # table node returns markup of " "
18 + self.text.extend([before, indent])
19 + else:
20 + self.text.extend([before, indent, markup])
21 self.process_list_item(i, indent)
22 elif name in ('ol', 'ul', ):
23 self.process_list(i)
GuiEditorBreaksIndentedTable.patch
Plan
- Priority:
- Assigned to:
- Status: bug fixed by 4247:c76d50dac855