diff options
author | C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 2022-10-02 05:20:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 05:20:17 (GMT) |
commit | e8165d47b852e933c176209ddc0b5836a9b0d5f4 (patch) | |
tree | a4f1b908e8cd71df821542c7c9b5fc694f178157 /Python/pystrhex.c | |
parent | dcc82331c8f05a6a149ac15c519d4fbae72692b2 (diff) | |
download | cpython-e8165d47b852e933c176209ddc0b5836a9b0d5f4.zip cpython-e8165d47b852e933c176209ddc0b5836a9b0d5f4.tar.gz cpython-e8165d47b852e933c176209ddc0b5836a9b0d5f4.tar.bz2 |
gh-97607: Fix content parsing in the impl-detail reST directive (#97652)
* Don't parse content as arg in the impl-detail directive
This does not change the (untranslated) output,
but ensures that the doctree node metadata is correct.
which fixes gh-97607 with the text not being translated.
It also simplifies the code and logic
and makes it consistant with the docutils built-in directives.
* Remove unused branch from impl-detail directive handling no-content case
This is not used anywhere in the docs and lacks a clear use case,
and is more likely a mistake which is now flagged at build time.
This simplifies the logic from two code paths to one,
and makes the behavior consistant with similar built-in directives
(e.g. the various admonition types).
* Further simplify impl-detail reST directive code
Diffstat (limited to 'Python/pystrhex.c')
0 files changed, 0 insertions, 0 deletions