changeset 4943:d5d9ef80d39b

Fixes a bug with empty list items in the GUI editor. See also http://www.moinmo.in/MoinMoinPatch/GuiRemoveEmptyListItems
author Josef Meier (jo.meier@gmx.de)
date Tue, 11 Aug 2009 21:51:42 +0200
parents a6b0b1fcd463
children 506ce7e1f8e0
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Aug 04 21:50:44 2009 +0200
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Aug 11 21:51:42 2009 +0200
@@ -682,6 +682,12 @@
         found = False
         need_indent = False
         pending = []
+        
+        # If this is a empty list item, we just terminate the line
+        if node.childNodes.length == 0:
+            self.text.append(self.new_line)
+            return
+        
         for i in node.childNodes:
             name = i.localName