milde dac488cd29 rST parser: ensure that nested parsing only appends to the provided base node.
* Always start a new title style hierarchy for nested parsing.
* Append sections to the base node also if it is not a `<document>`
  or `<section>` (revert [r10203]).

This change makes the behaviour of nested parsing more uniform and predictable
(independent of type and possible parents of the base node).

It prevents problems with silently dropped higher level sections
in Docutils < 0.22 (because the legacy "raise error and retry" algorithm
of section parsing fails with nested parsing).
It also prevents a wrong node order for sections in Docutils 0.22
(because the calling parser has no means to know the new "insertion point"
and continues where it left before the nested parsing).

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@10206 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
2025-08-19 16:53:27 +00:00
2025-07-29 16:12:15 +00:00
2025-07-30 08:22:43 +00:00
2023-03-31 21:26:14 +00:00
Description
mirror of docutils git mirror repository. also see here
37 MiB
Languages
Python 52.4%
XSLT 14.1%
HTML 13.7%
reStructuredText 7.5%
TeX 3.7%
Other 8.5%