Doctree validation: custom exception `nodes.ValidationError`.
commit70246fd2f2264d8715836e0379e7b113e2e5d12c
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 5 Jun 2024 10:22:23 +0000 (5 10:22 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 5 Jun 2024 10:22:23 +0000 (5 10:22 +0000)
treeb351ada4e7cde644e3a897554eaf731ea2fe7392
parent5d268f0c30b8ca5c973ff8762af5c902114f1e0d
Doctree validation: custom exception `nodes.ValidationError`.

The custom `ValidationError` has the additional attribute "problematic
element" that holds the element close to the violation ("self", for
invalid XML attributes and spurious text or a child node that does not
fit in the content model).

Use for warnings with source-code line
in `transforms.universal.Validate`

Revise validation error messages.

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