From 617728cb1860d53468ecdd114580bb2cc00fc5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Drozd=C3=ADk?= Date: Sun, 5 Jan 2025 20:33:56 +0100 Subject: [PATCH] fixes #389 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit original fix suggested by @LauraLMann in https://github.com/pdoc3/pdoc/issues/389#issuecomment-1108855774 Signed-off-by: Patrik DrozdĂ­k --- pdoc/templates/pdf.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdoc/templates/pdf.mako b/pdoc/templates/pdf.mako index b9bb4905..6694dba2 100644 --- a/pdoc/templates/pdf.mako +++ b/pdoc/templates/pdf.mako @@ -27,7 +27,7 @@ %> <%def name="title(level, string, id=None)"> - <% id = f' {{#id}}' if id is not None else '' %> + <% id = f' {{#{id}}}' if id is not None else '' %> ${('#' * level) + ' ' + string + id}