From: Waylan L. <wa...@gm...> - 2008-08-26 13:58:30
|
Thanks Kjell. I suspected it was something like that. I just haven't had the time to work on it. I was thinking perhaps I would have the highlighter return the highlighted source without a div wrapping it, then we could place that within a ET generated div. IIRC, there is a way to get pygments to do that, but I couldn't tell you off the top of my head what it is. If you want to give that a shot - feel free. Otherwise I'll get to it when I have the time. On Tue, Aug 26, 2008 at 4:20 AM, Kjell Magne Fauske <kj...@gm...> wrote: > 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? ) > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > -- ---- Waylan Limberg wa...@gm... |