Skip to content

Commit 5054240

Browse files
committed
chore: Be a bit more minijinja compatible
1 parent c0424f2 commit 5054240

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Context:
3636
{% if not root or config.show_root_heading %}
3737
{% filter heading(
3838
heading_level,
39-
role="data" if attribute.parent.kind.value == "module" else "attr",
39+
role=("data" if attribute.parent.kind.value == "module" else "attr"),
4040
id=html_id,
4141
class="doc doc-heading",
4242
toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else attribute.name),
@@ -89,7 +89,7 @@ Context:
8989

9090
{% if config.show_root_toc_entry %}
9191
{% filter heading(heading_level,
92-
role="data" if attribute.parent.kind.value == "module" else "attr",
92+
role=("data" if attribute.parent.kind.value == "module" else "attr"),
9393
id=html_id,
9494
toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else attribute_name),
9595
hidden=True,

0 commit comments

Comments
 (0)