changeset 4010:fdfed78ebd72

replace functional expression with interation
author Byeongweon [tasyblue@gmail.com]
date Wed, 13 Aug 2008 00:46:04 +0900
parents 579b76b20c8c
children 42526183b82b
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Aug 12 19:59:18 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Aug 13 00:46:04 2008 +0900
@@ -605,12 +605,12 @@
                 before = self.new_line_dont_remove
             style = listitem.getAttribute("style")
             if re.match(ur"list-style-type:\s*none", style, re.I):
-                if u'table' in map(lambda x: x.localName, listitem.childNodes):
-                    markup = " "
-                else:
-                    markup = ". "
-            else:
-                markup = "* "
+                markup = ". "
+                # set markup with white space when list element containes table
+                for i in listitem.childNodes:
+                    if i.nodeType == Node.ELEMENT_NODE:
+                        if i.localName == 'table':
+                            markup = " "
         elif name == 'dl':
             markup = ":: "
         else: