From bdae56058e0b3ef32a71df5e881597127477b112 Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Sat, 25 Jan 2020 14:22:01 -0800 Subject: [PATCH] Fix linkify_type calls in templates for tera 1.0 --- src/dmdoc/template/dm_module.html | 2 +- src/dmdoc/template/dm_type.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dmdoc/template/dm_module.html b/src/dmdoc/template/dm_module.html index ba2197be..f831df00 100644 --- a/src/dmdoc/template/dm_module.html +++ b/src/dmdoc/template/dm_module.html @@ -22,7 +22,7 @@ {% if item.type.substance -%} {{item.type.path}} {%- else -%} - {{ item.type.path | safe | linkify_type }} + {{ item.type.path | linkify_type | safe }} {%- endif %}{{ item.type.teaser | safe }} {%- endif %} {%- endfor -%} diff --git a/src/dmdoc/template/dm_type.html b/src/dmdoc/template/dm_type.html index a24933b6..7fe817b4 100644 --- a/src/dmdoc/template/dm_type.html +++ b/src/dmdoc/template/dm_type.html @@ -11,11 +11,11 @@

{% if path == "(global)" -%} (global) {%- elif details.name -%} - {{ details.name }} + {{ details.name }} {%- else -%} - {{ path | safe | linkify_type }} + {{ path | linkify_type | safe }} {%- endif %} -{%- if details.parent_type %}{% endif -%} +{%- if details.parent_type %}{% endif -%} {{ macros::git_link(env=env, item=details) }}

{% if details.docs %}{{ details.docs.html | safe }}{% endif %} @@ -50,7 +50,7 @@ + {{ var.type.path | linkify_type | safe }} {%- endif -%} {{ macros::git_link(env=env, item=var) }} {{ var.docs.html | safe }} @@ -67,7 +67,7 @@ {{ name }}