@@ -709,92 +709,92 @@ Standard C. The recognized escape sequences are:
709709Ignored end of line
710710^^^^^^^^^^^^^^^^^^^
711711
712- A backslash can be added at the end of a line to ignore the newline::
712+ A backslash can be added at the end of a line to ignore the newline::
713713
714- >>> 'This string will not include \
715- ... backslashes or newline characters.'
716- 'This string will not include backslashes or newline characters.'
714+ >>> 'This string will not include \
715+ ... backslashes or newline characters.'
716+ 'This string will not include backslashes or newline characters.'
717717
718- The same result can be achieved using :ref: `triple-quoted strings <strings >`,
719- or parentheses and :ref: `string literal concatenation <string-concatenation >`.
718+ The same result can be achieved using :ref: `triple-quoted strings <strings >`,
719+ or parentheses and :ref: `string literal concatenation <string-concatenation >`.
720720
721721.. _string-escape-escaped-char :
722722
723723Escaped characters
724724^^^^^^^^^^^^^^^^^^
725725
726- To include a backslash in a non-:ref: `raw <raw-strings >` Python string
727- literal, it must be doubled. The ``\\ `` escape sequence denotes a single
728- backslash character::
726+ To include a backslash in a non-:ref: `raw <raw-strings >` Python string
727+ literal, it must be doubled. The ``\\ `` escape sequence denotes a single
728+ backslash character::
729729
730- >>> print('C:\\Program Files')
731- C:\Program Files
730+ >>> print('C:\\Program Files')
731+ C:\Program Files
732732
733- Similarly, the ``\' `` and ``\" `` sequences denote the single and double
734- quote character, respectively::
733+ Similarly, the ``\' `` and ``\" `` sequences denote the single and double
734+ quote character, respectively::
735735
736- >>> print('\' and \"')
737- ' and "
736+ >>> print('\' and \"')
737+ ' and "
738738
739739.. _string-escape-oct :
740740
741741Octal character
742742^^^^^^^^^^^^^^^
743743
744- The sequence :samp: `\\\\ { ooo } ` denotes a *character * with the octal (base 8)
745- value *ooo *::
744+ The sequence :samp: `\\\\ { ooo } ` denotes a *character * with the octal (base 8)
745+ value *ooo *::
746746
747- >>> '\120'
748- 'P'
747+ >>> '\120'
748+ 'P'
749749
750- Up to three octal digits (0 through 7) are accepted.
750+ Up to three octal digits (0 through 7) are accepted.
751751
752- In a bytes literal, *character * means a *byte * with the given value.
753- In a string literal, it means a Unicode character with the given value.
752+ In a bytes literal, *character * means a *byte * with the given value.
753+ In a string literal, it means a Unicode character with the given value.
754754
755- .. versionchanged :: 3.11
756- Octal escapes with value larger than ``0o377 `` (255) produce a
757- :exc: `DeprecationWarning `.
755+ .. versionchanged :: 3.11
756+ Octal escapes with value larger than ``0o377 `` (255) produce a
757+ :exc: `DeprecationWarning `.
758758
759- .. versionchanged :: 3.12
760- Octal escapes with value larger than ``0o377 `` (255) produce a
761- :exc: `SyntaxWarning `.
762- In a future Python version they will raise a :exc: `SyntaxError `.
759+ .. versionchanged :: 3.12
760+ Octal escapes with value larger than ``0o377 `` (255) produce a
761+ :exc: `SyntaxWarning `.
762+ In a future Python version they will raise a :exc: `SyntaxError `.
763763
764764.. _string-escape-hex :
765765
766766Hexadecimal character
767767^^^^^^^^^^^^^^^^^^^^^
768768
769- The sequence :samp: `\\ x{ hh } ` denotes a *character * with the hex (base 16)
770- value *hh *::
769+ The sequence :samp: `\\ x{ hh } ` denotes a *character * with the hex (base 16)
770+ value *hh *::
771771
772- >>> '\x50'
773- 'P'
772+ >>> '\x50'
773+ 'P'
774774
775- Unlike in Standard C, exactly two hex digits are required.
775+ Unlike in Standard C, exactly two hex digits are required.
776776
777- In a bytes literal, *character * means a *byte * with the given value.
778- In a string literal, it means a Unicode character with the given value.
777+ In a bytes literal, *character * means a *byte * with the given value.
778+ In a string literal, it means a Unicode character with the given value.
779779
780780.. _string-escape-named :
781781
782782Named Unicode character
783783^^^^^^^^^^^^^^^^^^^^^^^
784784
785- The sequence :samp: `\\ N\\ { {name } \\ } ` denotes a Unicode character
786- with the given *name *::
785+ The sequence :samp: `\\ N\\ { {name } \\ } ` denotes a Unicode character
786+ with the given *name *::
787787
788- >>> '\N{LATIN CAPITAL LETTER P}'
789- 'P'
790- >>> '\N{SNAKE}'
791- '🐍'
788+ >>> '\N{LATIN CAPITAL LETTER P}'
789+ 'P'
790+ >>> '\N{SNAKE}'
791+ '🐍'
792792
793- This sequence cannot appear in :ref: `bytes literals <bytes-literal >`.
793+ This sequence cannot appear in :ref: `bytes literals <bytes-literal >`.
794794
795- .. versionchanged :: 3.3
796- Support for `name aliases <https://www.unicode.org/Public/16.0.0/ucd/NameAliases.txt >`__
797- has been added.
795+ .. versionchanged :: 3.3
796+ Support for `name aliases <https://www.unicode.org/Public/16.0.0/ucd/NameAliases.txt >`__
797+ has been added.
798798
799799.. _string-escape-long-hex :
800800
@@ -807,14 +807,14 @@ Exactly four digits are required for ``\u``; exactly eight digits are
807807required for ``\U ``.
808808The latter can encode any Unicode character.
809809
810- .. code-block :: pycon
810+ .. code-block :: pycon
811811
812- >>> '\u1234'
813- 'ሴ'
814- >>> '\U0001f40d'
815- '🐍'
812+ >>> '\u1234'
813+ 'ሴ'
814+ >>> '\U0001f40d'
815+ '🐍'
816816
817- These sequences cannot appear in :ref: `bytes literals <bytes-literal >`.
817+ These sequences cannot appear in :ref: `bytes literals <bytes-literal >`.
818818
819819
820820.. index :: unrecognized escape sequence
0 commit comments