From: David G. <go...@py...> - 2006-05-09 19:22:46
|
On 5/9/06, Brendan Neutra <bn...@gm...> wrote: > exposing the internal attribute "line" and "source" seems like it could > work. I do include a header document in the main doc. By looking at the > xml output with the expose-internal-attribute line option, I've deduced: > > 1. The line number attribute does not correspond directly to the original > document but, rather, to the doc that would result from inserting the > include docs as well. I'll need to work around that somehow. This is a known bug. Fixes to Docutils itself would be welcome. > 2. The line number represents the close tag for a given element. e.g. The > line number attribute for a very long definition list would correspond to > the line at the very end of the list. No, the line number should correspond to the start of the element. If it doesn't, that's a bug (please provide example input that demonstrates the bug). Perhaps (1) is throwing you off. -- David Goodger <http://python.net/~goodger> |