summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-28 13:06:03 +0200
committerGitHub <noreply@github.com>2022-07-28 13:06:03 +0200
commitedb503cd00614391d14759777c38d8be6d0f20aa (patch)
treefac7ec929d8eede5de650305dc8a96d7a575279a /doc
parent7281f0f2381394a33300901a04fba100c5af79d9 (diff)
parentd9b4ece093f256797e3596484e47818dac75e882 (diff)
Merge pull request #63400 from jynus/rst-generation-operator-syntax
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/tools/make_rst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py
index 2aa4cb8ec1..469bb4a310 100755
--- a/doc/tools/make_rst.py
+++ b/doc/tools/make_rst.py
@@ -1401,7 +1401,7 @@ def make_method_signature(
if ref_type != "":
if ref_type == "operator":
out += ":ref:`{0}<class_{1}_{2}_{3}_{4}>` ".format(
- method_def.name,
+ method_def.name.replace("<", "\\<"), # So operator "<" gets correctly displayed.
class_def.name,
ref_type,
sanitize_operator_name(method_def.name, state),