From 6180442ed8cb05de47d96d5b2046fba15216bb94 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 1 Jun 2024 08:30:25 -0700 Subject: [PATCH] Render template parameters --- support/mkdocstrings_handlers/cxx/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'