I suspect an old copy of docutils. If it turns out that way, StructuredText.py:renderText should catch TypeError and alert the user that docutils should be updated. Progress debugging: It still breaks, even with the latest docutils from CVS. docutils.utils.new_document wants an argument giving a description of the source. Specifying 'posting' gets us through to the next error: when StructuredText.renderText tries to parser.parse(str, document), docutils.parsers.rst.parse bombs out complaining that a Values instance lacks a tab_width attribute. I'm not seeing the full trace in my posting, so I'll have to dig further. I still can't figure out where that exception is being caught and processed. Oh, that's the full trace, according to just running StructuredText.py. The trace is being truncated elsewhere. As far as I can tell, the problem is with not specifying any settings to docutils.utils.new_document... or, maybe not. Hacking in the code from docutils' quicktest.py doesn't seem to help, any. That said, hacking the settings code out of quicktest does induce the symptoms we're seeing. My mistake. Forgot an argument. That cracked it! last change 2003-04-16 13:33:20 |
Notes on tracking down a reStructuredText handling bug in PyDS 0.4.22 (CVS) |
© 2003-2004, Garth T Kidd