Skip to content

Commit 5fec8bf

Browse files
committed
Remove misformatted exclamation marks in docs
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 #98465. [1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
1 parent a703f74 commit 5fec8bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/venv.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ running from a virtual environment.
6161
A virtual environment may be "activated" using a script in its binary directory
6262
(``bin`` on POSIX; ``Scripts`` on Windows).
6363
This will prepend that directory to your :envvar:`!PATH`, so that running
64-
:program:`!python` will invoke the environment's Python interpreter
64+
:program:`python` will invoke the environment's Python interpreter
6565
and you can run installed scripts without having to use their full path.
6666
The invocation of the activation script is platform-specific
6767
(:samp:`{<venv>}` must be replaced by the path to the directory
@@ -84,7 +84,7 @@ containing the virtual environment):
8484
+-------------+------------+--------------------------------------------------+
8585

8686
.. versionadded:: 3.4
87-
:program:`!fish` and :program:`!csh` activation scripts.
87+
:program:`fish` and :program:`csh` activation scripts.
8888

8989
.. versionadded:: 3.8
9090
PowerShell activation scripts installed under POSIX for PowerShell Core

Misc/NEWS.d/3.12.0a2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ Fix ``make regen-test-levenshtein`` for out-of-tree builds.
959959
960960
Don't use vendored ``libmpdec`` headers if :option:`--with-system-libmpdec`
961961
is passed to :program:`configure`. Don't use vendored ``libexpat`` headers
962-
if :option:`--with-system-expat` is passed to :program:`!configure`.
962+
if :option:`--with-system-expat` is passed to :program:`configure`.
963963

964964
..
965965

0 commit comments

Comments
 (0)