> Attached a patch adding such a directive:
> diff -ru docutils/docutils/nodes.py compound-docutils/docutils/nodes.py
> + optional = ('compound',)
> + """
> + No exception will be raised if writers do not implement visit
> + or departure functions for these node classes.
> + Used to ensure compatibility with existing 3rd-party writers.
> + """
Interesting idea. I added an option to further refine it:
--strict-visitor. It's a hidden development-only option, that should
probably be enabled in all tests.
> diff -ru docutils/docutils/parsers/rst/directives/__init__.py
> + 'compound': ('misc', 'compound'),
Changed this to the body.py module, since "compound" is a body
The modified patch is attached (apply to current CVS). Please take a
look, and go ahead & check it in. I've also added a test module.
> (Did I mention that things would have been a lot easier with
> I could have painlessly created a branch.)
CVS can do branches too. The true hacker knows no pain :-)
David Goodger <http://python.net/~goodger>
From: Felix Wiemann <Felix.W<iemann@gm...> - 2004-10-20 12:41:49
David Goodger wrote:
> The modified patch is attached
Not really. :)
> Please take a look, and go ahead & check it in.
You can directly check it in if you like.
>> (Did I mention that things would have been a lot easier with
> Tell SourceForge.
Done. They aren't even saying *when* they are planning to offer
Subversion hosting. *sigh*
When replying to my email address, please ensure
that the mail header contains 'Felix Wiemann'.