Doctree validation: fix check of `authors` content.
commitf7729ba065c95eaa7c81a8e2ecdbe268c74fc13b
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 5 Jun 2024 15:54:16 +0000 (5 15:54 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 5 Jun 2024 15:54:16 +0000 (5 15:54 +0000)
tree14259b171b4790dd260e6139274efbdad8f59421
parent9454ce4512ca14e7a31d570063df16df85fec954
Doctree validation: fix check of `authors` content.

The `authors` element has a complex content model that cannot be
represented with the data-structure used in `Element.content_model`:

    (author, organization?, address?, contact?)+

Use specific method in `nodes.authors` to repeatedly test a
simplified content model description until all children are handled.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9731 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/docutils/nodes.py
docutils/test/test_nodes.py