= Details = ## please fill this in '''Applies to''' 1.8.4 '''Purpose ''' Removes a bug where empty list elements in the GUI editor will lead to "* * * * *..." characters after saving the GUI editor content. If you enter some empty list elements in the GUI editor by pressing ENTER again and again and you press "save changes" after that, your empty list items are converted to "* * * * * * ..." (the wiki markup for list elements). In my opinion this is a bug which can be fixed very easily. Try it yourself. Type this: * first line * second line * third line After that insert some empty list elements before "first line" through pressing the ENTER key several times. You will see some empty bullets. After saving your changes it will look like this: * * * * first line * second line * third line '''Description''' This patch patches the file ''text_html_text_moin_wiki.py'' = Patch = ## we prefer that you send the patch in an attachment to avoid whitespace issues ## you should probably change the name of the attachment here Empty list elements like
  • are transformed to the wiki markup "*" without a line break in the file 'text_html_text_moin_wiki.py'. The code lines {{{ if node.childNodes.length == 0: self.text.append(self.new_line) return }}} will append empty list elements with a line break. The procedure "process_list_item" will look like this after the modification (partially shown only): {{{ def process_list_item(self, node, indent): found = False need_indent = False pending = [] if node.childNodes.length == 0: self.text.append(self.new_line) return for i in node.childNodes: name = i.localName if name in ('p', 'pre', 'ol', 'ul', 'dl', 'table', ) and pending: self.empty_paragraph_queue(pending, indent, need_indent) need_indent = True ... }}} And here is the patch file: {{attachment:MoinMoin_rev4360.patch}} = Discussion = = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: fixed by http://hg.moinmo.in/moin/1.8/rev/d5d9ef80d39b ---- CategoryMoinMoinPatch CategoryMoinMoinBugFixed