diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index 2aa4cb8ec13..469bb4a3100 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}` ".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),