From dc007ca77be8579ee2add63e8ce470f0a6323a17 Mon Sep 17 00:00:00 2001 From: Mathias Dannesbo Date: Wed, 7 Mar 2018 13:09:54 +0100 Subject: [PATCH] Change order of safe and linebreak in template The safe filter was not applied because it was after the linebreak filter. --- .../plugins/macros/templates/wiki/plugins/macros/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki/plugins/macros/templates/wiki/plugins/macros/sidebar.html b/src/wiki/plugins/macros/templates/wiki/plugins/macros/sidebar.html index d1a8f4b8..31b68520 100644 --- a/src/wiki/plugins/macros/templates/wiki/plugins/macros/sidebar.html +++ b/src/wiki/plugins/macros/templates/wiki/plugins/macros/sidebar.html @@ -3,7 +3,7 @@ {% for macro in macros %}

{{ macro.short_description }}

-{{ macro.help_text|linebreaks|safe }} +{{ macro.help_text|safe|linebreaks }} {% if macro.example_code %}
{{ macro.example_code }}
{% endif %} -- 2.45.2