diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-02 05:28:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 05:28:54 (GMT) |
commit | 8c528ef4a1804975cd7dc53db1c229bce8e6b875 (patch) | |
tree | 0b1931d21bfd91843d3a93c513d2a821e28b742f /Python/pymath.c | |
parent | 1fa848ac396d8eef807589bfbd5782dcb97acce9 (diff) | |
download | cpython-8c528ef4a1804975cd7dc53db1c229bce8e6b875.zip cpython-8c528ef4a1804975cd7dc53db1c229bce8e6b875.tar.gz cpython-8c528ef4a1804975cd7dc53db1c229bce8e6b875.tar.bz2 |
gh-97607: Fix content parsing in the impl-detail reST directive (GH-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
(cherry picked from commit e8165d47b852e933c176209ddc0b5836a9b0d5f4)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions