I've got a problem that the role handler seems to be remembering data
from previous calls to publish_doctree.
If I have a script which processes mutliple documents with roles the
role content is not cleared.
I've attached a test script so you can see what I mean.
I would expect this program to produce the same output with and without
the '-r' switch. Personally I would expect the '-r' one to be correct
but I might have missed something.
This is a problem I seeing with debian's docutils 0.5-2lenny1 , 0.6-2
Can some one explain this?
From: Roger Gammans <roger@co...> - 2010-02-13 17:42:26
On Sat, 2010-02-13 at 15:58 +0000, Roger Gammans wrote:
> Can some one explain this?
Actually moments after I saw the message the penny dropped -I realised
that rstdoc1 redefines the 'mm' role. And that is the persisent change.
So is there a way that any changes a document makes to the global
state (like role definitions) can be cleared ?
It seems a bit odd if not particularly if you a are processing
documents from unknown sources.
Roger Gammans <roger@...>