Menu

Commit [r10225]  Maximize  Restore  History

Deprecate the "match_titles" argument of `states.RSTState.nested_list_parse()`.

`nested_list_parse()` is intended for second and subsequent items of lists
and list-like constructs, it does never match section titles.

The argument value was (mis)used in directive classes to check wheter a
`<topic>` or `<sidebar>` element can be returned.
This check is now replaced by testing for a valid parent node.

milde 2025-08-28

changed /trunk/docutils/RELEASE-NOTES.rst
changed /trunk/docutils/docutils/parsers/rst/directives/body.py
changed /trunk/docutils/docutils/parsers/rst/directives/parts.py
changed /trunk/docutils/docutils/parsers/rst/states.py
/trunk/docutils/RELEASE-NOTES.rst Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/parsers/rst/directives/body.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/parsers/rst/directives/parts.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/parsers/rst/states.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB