Attachment 'MoinMoin_rev4360.patch'

Download

   1 # HG changeset patch
   2 # User Josef Meier (jo.meier@gmx.de)
   3 # Date 1250020302 -7200
   4 # Node ID 1d407a2b8aff4be154f89c1ee5442384f13124d1
   5 # Parent  a6cffa0032be9a6ea4ee310e72e53829de6bd699
   6 Fixes a bug with empty list items in the GUI editor.
   7 See also http://www.moinmo.in/MoinMoinPatch/GuiRemoveEmptyListItems
   8 
   9 diff -r a6cffa0032be -r 1d407a2b8aff MoinMoin/converter/text_html_text_moin_wiki.py
  10 --- a/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Aug 11 21:50:33 2009 +0200
  11 +++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Tue Aug 11 21:51:42 2009 +0200
  12 @@ -682,6 +682,12 @@
  13          found = False
  14          need_indent = False
  15          pending = []
  16 +        
  17 +        # If this is a empty list item, we just terminate the line
  18 +        if node.childNodes.length == 0:
  19 +            self.text.append(self.new_line)
  20 +            return
  21 +        
  22          for i in node.childNodes:
  23              name = i.localName
  24  

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-08-11 19:53:16, 0.9 KB) [[attachment:MoinMoin_rev4360.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.