Skip to content

Commit 087fb56

Browse files
hugovktom93
andauthored
[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]: #98350 (comment) [3]: #98350 (comment) Reported-by: Vinay Sajip <[email protected]> Co-authored-by: Tom Levy <[email protected]>
1 parent 6f4df72 commit 087fb56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/venv.rst

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

8484
.. versionadded:: 3.4
85-
:program:`!fish` and :program:`!csh` activation scripts.
85+
:program:`fish` and :program:`csh` activation scripts.
8686

8787
.. versionadded:: 3.8
8888
PowerShell activation scripts installed under POSIX for PowerShell Core

0 commit comments

Comments
 (0)