Description

ConvertError

Illegal list element br

If you want to report a bug, please save this page and attach it to your bug report.

    * Show debugging information
    * Report bug
    * Visit MoinMoin wiki

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

   1.

      /var/lib/python-support/python2.4/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)
         1. 1171 self.page.send_page(self, msg=msg)
         2. 1172 else:
         3. 1173 handler(self.page.page_name, self)
         4. 1174
         5. 1175 # generate page footer (actions that do not want this footer use
          * handler = <function do_edit>
          * self = <MoinMoin.request.RequestCGI object>
          * self.page = <MoinMoin.Page.Page instance>
          * self.page.page_name = u'Development Tools'
   2.

      /var/lib/python-support/python2.4/MoinMoin/wikiaction.py in do_edit (pagename=u'Development Tools', request=<MoinMoin.request.RequestCGI object>)
         1. 597 try:
         2. 598 if lasteditor == 'gui':
         3. 599 savetext = convert(request, pagename, savetext)
         4. 600
         5. 601 # IMPORTANT: normalize text from the form. This should be done in
          * savetext = u'<ul><li>Darcs - <font size="-1"><a href="http://...e Development with CVS, 3rd Ed. </font></li></ul>'
          * convert = <function convert>
          * request = <MoinMoin.request.RequestCGI object>
          * pagename = u'Development Tools'
   3.

      /var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in convert (request=<MoinMoin.request.RequestCGI object>, pagename=u'Development Tools', text=u'<page><ul><li>Darcs - <font size="-1"><a href="h...opment with CVS, 3rd Ed. </font></li></ul></page>')
         1. 1220 tree = parse(request, text)
         2. 1221 strip_whitespace().do(tree)
         3. 1222 text = convert_tree(request, pagename).do(tree)
         4. 1223 text = '\n'.join([s.rstrip() for s in text.splitlines()] + ['']) # remove trailing blanks
         5. 1224 return text
          * text = u'<page><ul><li>Darcs - <font size="-1"><a href="h...opment with CVS, 3rd Ed. </font></li></ul></page>'
          * global convert_tree = <class 'MoinMoin.converter.text_html_text_x_moin.convert_tree'>
          * request = <MoinMoin.request.RequestCGI object>
          * pagename = u'Development Tools'
          * ).do undefined
          * tree = <xml.dom.minidom.Document instance>
   4.

      /var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in do (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>, tree=<xml.dom.minidom.Document instance>)
         1. 462 self.depth = 0
         2. 463 self.text = []
         3. 464 self.visit(tree.documentElement)
         4. 465 self.check_whitespace()
         5. 466 return ''.join(self.text)
          * self = <MoinMoin.converter.text_html_text_x_moin.convert_tree object>
          * self.visit = <bound method convert_tree.visit of <MoinMoin.converter.text_html_text_x_moin.convert_tree object>>
          * tree = <xml.dom.minidom.Document instance>
          * tree.documentElement = <DOM Element: page>
   5.

      /var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in visit (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>, node=<DOM Element: page>)
         1. 409 nodeType = node.nodeType
         2. 410 if node.nodeType == Node.ELEMENT_NODE:
         3. 411 return self.visit_element(node)
         4. 412 elif node.nodeType == Node.ATTRIBUTE_NODE:
         5. 413 return self.visit_attribute(node)
          * self = <MoinMoin.converter.text_html_text_x_moin.convert_tree object>
          * self.visit_element = <bound method convert_tree.visit_element of <Moi...erter.text_html_text_x_moin.convert_tree object>>
          * node = <DOM Element: page>
   6.

      /var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in visit_element (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>, node=<DOM Element: page>)
         1. 511 func = getattr(self, "process_%s" % name, None)
         2. 512 if func:
         3. 513 func(node)
         4. 514 else:
         5. 515 self.process_inline(node)
          * func = <bound method convert_tree.process_page of <Moin...erter.text_html_text_x_moin.convert_tree object>>
          * node = <DOM Element: page>
   7.

      /var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in process_page (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>, node=<DOM Element: page>)
         1. 532 for i in node.childNodes:
         2. 533 if i.nodeType == Node.ELEMENT_NODE:
         3. 534 self.visit_element(i)
         4. 535 elif i.nodeType == Node.TEXT_NODE: # if this is missing, all std text under a headline is dropped!
         5. 536 txt = i.data.strip() # IMPORTANT: don't leave this unstripped or there will be wrong blanks
          * self = <MoinMoin.converter.text_html_text_x_moin.convert_tree object>
          * self.visit_element = <bound method convert_tree.visit_element of <Moi...erter.text_html_text_x_moin.convert_tree object>>
          * i = <DOM Element: ul>
   8.

      /var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in visit_element (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>, node=<DOM Element: ul>)
         1. 511 func = getattr(self, "process_%s" % name, None)
         2. 512 if func:
         3. 513 func(node)
         4. 514 else:
         5. 515 self.process_inline(node)
          * func = <bound method convert_tree.process_list of <Moin...erter.text_html_text_x_moin.convert_tree object>>
          * node = <DOM Element: ul>
   9.

      /var/lib/python-support/python2.4/MoinMoin/converter/text_html_text_x_moin.py in process_list (self=<MoinMoin.converter.text_html_text_x_moin.convert_tree object>, node=<DOM Element: ul>)
         1. 625 self.process_dl(i)
         2. 626 else:
         3. 627 raise ConvertError("Illegal list element %s" % i.localName)
         4. 628 self.depth -= 1
         5. 629 if self.depth == 0:
          * global ConvertError = <class MoinMoin.converter.text_html_text_x_moin.ConvertError>
          * i = <DOM Element: br>
          * i.localName = u'br'

ConvertError

Illegal list element br

    * exceptions = <bound method ConvertError.exceptions of <MoinMo...ter.text_html_text_x_moin.ConvertError instance>>
    * innerException = (None, None, None)
    * message = u'Illegal list element br'
    * name = 'MoinMoin Convert Error'

System Details

    * Date: Fri, 30 Mar 2007 04:54:43 +0000
    * Platform: Linux uml.eqenchanters.org 2.6.9-skas3-v8-rc1-bs7 #2 Tue Feb 22 12:20:26 CST 2005 i686
    * Python: Python 2.4.4 (/usr/bin/python)
    * MoinMoin: Release 1.5.7 (release)

Component selection

Details

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

There is no testcase given or described, I close the bug because since 1.5.7 the gui editor code was refactored. You can reopen it if it still happens. But please add an example. We need to reproduce it. -- ReimarBauer 2009-11-27 19:47:23

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/BRfailure (last edited 2009-11-27 19:47:23 by ReimarBauer)