~netlandish/django-wiki

dc007ca77be8579ee2add63e8ce470f0a6323a17 — Mathias Dannesbo 6 years ago a05028e
Change order of safe and linebreak in template

The safe filter was not applied because it was after the linebreak filter.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/wiki/plugins/macros/templates/wiki/plugins/macros/sidebar.html
M src/wiki/plugins/macros/templates/wiki/plugins/macros/sidebar.html => src/wiki/plugins/macros/templates/wiki/plugins/macros/sidebar.html +1 -1
@@ 3,7 3,7 @@

{% for macro in macros %}
<h4>{{ macro.short_description }}</h4>
{{ macro.help_text|linebreaks|safe }}
{{ macro.help_text|safe|linebreaks }}
{% if macro.example_code %}
<pre>{{ macro.example_code }}</pre>
{% endif %}