From e4398b1b8f1768d7cb4824462bc3f01104278ef0 Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Thu, 15 Nov 2018 10:05:39 +0100 Subject: [PATCH] _text_list.html without unnecessary whitespace. --- shared/utils/templates/utils/_text_list.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/shared/utils/templates/utils/_text_list.html b/shared/utils/templates/utils/_text_list.html index a384d7d..8518879 100644 --- a/shared/utils/templates/utils/_text_list.html +++ b/shared/utils/templates/utils/_text_list.html @@ -2,9 +2,4 @@ {# List of items, where items have a (potentially empty) get_absolute_url and a name attribute #} {# Usage: {% include "utils/_text_list.html" with items=page.get_authors no_links=True %} #} - {% for item in items %} - {% if forloop.last and forloop.counter > 1 %}{% trans "and" %}{% endif %} - {% with item.get_absolute_url as url %} - {% if url and not no_links %}{% endif %}{{ item.name }}{% if url and not no_links %}{% endif %}{% if not forloop.last %}{% if forloop.revcounter0 > 1 %},{% endif %}{% endif %} - {% endwith %} - {% endfor %} +{% for item in items %}{% if forloop.last and forloop.counter > 1 %} {% trans "and" %} {% endif %}{% with item.get_absolute_url as url %}{% if url and not no_links %}{% endif %}{{ item.name }}{% if url and not no_links %}{% endif %}{% if not forloop.last %}{% if forloop.revcounter0 > 1 %}, {% endif %}{% endif %}{% endwith %}{% endfor %} \ No newline at end of file