From: Waylan L. <way...@ic...> - 2014-11-16 13:34:34
|
The error seems pretty self-explanatory to me. You are getting a recursion error in the `build_correct` method of the TOC Extension. A quick look at the source indicates that that method recursively calls itself to turn a flat list of headers (h1-6) taken from the document and rearranges them into a properly nested list to use as the Table of Contents. The short answer would be to not use that extension with such a long document. But, the correct answer I suppose would be to refactor the `build_correct` method to not be recursive - which may be easier said that done. Waylan Limberg > On Nov 16, 2014, at 7:11 AM, Dave Pawson <dav...@gm...> wrote: > > 20K line file, > > final error reported is > File "/usr/lib/python2.7/site-packages/markdown/extensions/toc.py", > line 54, in build_correct > if current['level'] > prev_element['level']: > RuntimeError: maximum recursion depth exceeded in cmp > > > Any idea what I should be chasing please, in the md file? > > regards > -- > Dave Pawson > XSLT XSL-FO FAQ. > Docbook FAQ. > http://www.dpawson.co.uk > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |