]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] Remove misformatted exclamation marks in docs (GH-102694) (#102717)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Wed, 15 Mar 2023 07:26:46 +0000 (09:26 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Mar 2023 07:26:46 +0000 (09:26 +0200)
commit087fb56b9de2eedd5061619eda6fa98ee12738fc
treeba4a15ed2ed55d36f5102022a4906499d666488e
parent6f4df729bd0b01ae1221f0aba8775f4e3da337e9
[3.10] Remove misformatted exclamation marks in docs (GH-102694) (#102717)

Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350#issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350#issuecomment-1286394047

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Tom Levy <tomlevy93@gmail.com>
Doc/library/venv.rst