gh-109634: Fix `:samp:` syntax (GH-110073)
https://github.com/python/cpython/commit/e27adc68ccee8345e05b7516e6b46f6c7ff... commit: e27adc68ccee8345e05b7516e6b46f6c7ff53371 branch: main author: Jacob Coffee <jacob@z7x.org> committer: serhiy-storchaka <storchaka@gmail.com> date: 2023-09-29T14:21:34+03:00 summary: gh-109634: Fix `:samp:` syntax (GH-110073) files: M Doc/library/codecs.rst M Doc/reference/lexical_analysis.rst M Misc/NEWS.d/3.8.0a1.rst diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 053bf64addb82..2db4a67d1973d 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -1350,7 +1350,7 @@ encodings. +--------------------+---------+---------------------------+ | raw_unicode_escape | | Latin-1 encoding with | | | | :samp:`\\u{XXXX}` and | -| | | :samp:`\\U{XXXXXXXX}`` | +| | | :samp:`\\U{XXXXXXXX}` | | | | for other code points. | | | | Existing | | | | backslashes are not | diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index 9fd80b1cb7f84..e54e0ebb7fae9 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -582,7 +582,7 @@ Standard C. The recognized escape sequences are: +-------------------------+---------------------------------+-------+ | ``\v`` | ASCII Vertical Tab (VT) | | +-------------------------+---------------------------------+-------+ -| :samp:`\\{ooo}` | Character with octal value | (2,4) | +| :samp:`\\\\{ooo}` | Character with octal value | (2,4) | | | *ooo* | | +-------------------------+---------------------------------+-------+ | :samp:`\\x{hh}` | Character with hex value *hh* | (3,4) | diff --git a/Misc/NEWS.d/3.8.0a1.rst b/Misc/NEWS.d/3.8.0a1.rst index 57f72e95b029f..3cbbbf7465032 100644 --- a/Misc/NEWS.d/3.8.0a1.rst +++ b/Misc/NEWS.d/3.8.0a1.rst @@ -8253,7 +8253,7 @@ Explain how IDLE's Shell displays output. Improve the doc about IDLE running user code. The section is renamed from "IDLE -- console differences" is renamed "Running user code". It mostly -covers the implications of using custom :samp:sys.std{xxx}` objects. +covers the implications of using custom :samp:`sys.std{xxx}` objects. ..
participants (1)
-
serhiy-storchaka