diff --git a/support/mkdocstrings_handlers/cxx/__init__.py b/support/mkdocstrings_handlers/cxx/__init__.py index be666ed2..d05f3f4e 100644 --- a/support/mkdocstrings_handlers/cxx/__init__.py +++ b/support/mkdocstrings_handlers/cxx/__init__.py @@ -168,7 +168,8 @@ class CxxHandler(BaseHandler): text += '>\n' text += d.type + ' ' + d.name if d.params is not None: - params = ', '.join([p.type + ' ' + p.name for p in d.params]) + params = ', '.join( + [f'{p.type.replace("<", "<")} {p.name}' for p in d.params]) text += '(' + params + ')' text += ';' text += '\n'