[go: up one dir, main page]

Menu

Commit [r9961]  Maximize  Restore  History

Store attribute values with datatype "yesorno" as `bool` values.

Use `bool` instead of `int` to store values of "yesorno" attributes in
Python doctree element instances.
This is the "natural" choice for "yesorno" and restores consistency
with the validating function `nodes.validate_yesorno()`.

In XML and pseudoxml output, the value is serialized as "0" or "1"
for backwards compatibility.

milde 2024-10-21

changed /trunk/docutils/docs/ref/doctree.rst
changed /trunk/docutils/docutils/nodes.py
changed /trunk/docutils/docutils/parsers/rst/directives/tables.py
changed /trunk/docutils/docutils/parsers/rst/states.py