changeset 4003:9ab4430107e9

fix MoinMoinBugs/GuiEditorIndentingChangedForTables bug
author Byeongweon [tasyblue@gmail.com]
date Sun, 10 Aug 2008 16:09:05 +0900
parents ade975944b0d
children 3791b2e8e471
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Fri Aug 08 23:27:45 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Sun Aug 10 16:09:05 2008 +0900
@@ -605,7 +605,10 @@
                 before = self.new_line_dont_remove
             style = listitem.getAttribute("style")
             if re.match(ur"list-style-type:\s*none", style, re.I):
-                markup = ". "
+                if u'table' in map(lambda x: x.localName, listitem.childNodes):
+                    markup = " "
+                else:
+                    markup = ". "
             else:
                 markup = "* "
         elif name == 'dl':
@@ -1086,7 +1089,8 @@
         return " ".join(result).strip()
 
     def process_table(self, node, style=""):
-        self.text.append(self.new_line)
+        if self.depth == 0:
+            self.text.append(self.new_line)
         self.new_table = True
         style += self._table_style(node)
         for i in node.childNodes: