From: Kjell M. F. <kj...@gm...> - 2008-08-26 08:20:15
|
Dear Python-markdown developers, I have taken a closer look at ticket #12 regarding the bug in codehilite that inserts the formatted code at the start of the document. The problem seems to be that the code is inserted in the parent node's text attribute. According to the ElementTree documentation [1] the text attribute is text *before* the first subelement. That is why the code is inserted at the start of the document. I have posted a partial solution to the problem as a comment to the ticket: http://www.freewisdom.org/projects/python-markdown/Tickets/000012 Regards, Kjell Magne Fauske [1] http://effbot.org/zone/pythondoc-elementtree-ElementTree.htm#elementtree.ElementTree._ElementInterface.text-attribute ( Why can't I find this information in Python's documentation of ElementTree? ) |