summaryrefslogtreecommitdiffstats
path: root/Doc/library/html.parser.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-24 11:54:36 (GMT)
committerGitHub <noreply@github.com>2023-09-24 11:54:36 (GMT)
commit2622b130469f8be02627cd9b42187b1a392f6e42 (patch)
tree06780d3ffde192da9cd7ca5aaaba82c9819a4d3a /Doc/library/html.parser.rst
parent62df559448362f9a4291661d64aee30474dec025 (diff)
downloadcpython-2622b130469f8be02627cd9b42187b1a392f6e42.zip
cpython-2622b130469f8be02627cd9b42187b1a392f6e42.tar.gz
cpython-2622b130469f8be02627cd9b42187b1a392f6e42.tar.bz2
[3.12] gh-109634: Use :samp: role (GH-109635) (#109776)
gh-109634: Use :samp: role (GH-109635) (cherry picked from commit 92af0cc580051fd1129c7a86af2cbadeb2aa36dc) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/library/html.parser.rst')
-rw-r--r--Doc/library/html.parser.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/html.parser.rst b/Doc/library/html.parser.rst
index 03aff25..d350901 100644
--- a/Doc/library/html.parser.rst
+++ b/Doc/library/html.parser.rst
@@ -173,7 +173,7 @@ implementations do nothing (except for :meth:`~HTMLParser.handle_startendtag`):
.. method:: HTMLParser.handle_charref(name)
This method is called to process decimal and hexadecimal numeric character
- references of the form ``&#NNN;`` and ``&#xNNN;``. For example, the decimal
+ references of the form :samp:`&#{NNN};` and :samp:`&#x{NNN};`. For example, the decimal
equivalent for ``&gt;`` is ``&#62;``, whereas the hexadecimal is ``&#x3E;``;
in this case the method will receive ``'62'`` or ``'x3E'``. This method
is never called if *convert_charrefs* is ``True``.