do not remove space between attributes

This piece of code adds a space then removes it immediately. One could think that only the space after the last element of the loop is removed, but this is not the case. Space between loop elements are also removed.
This commit is contained in:
Grégoire Paris 2015-08-04 12:17:13 +02:00
parent 328ec0133e
commit 8d2b8881f5
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@
{%- block widget_container_attributes -%}
{% if id is not empty %}id="{{ id }}" {% endif %}
{%- for attrname, attrvalue in attr %}{{ attrname }}="{{ attrvalue }}" {%- endfor -%}
{%- for attrname, attrvalue in attr %}{{ attrname }}="{{ attrvalue }}" {% endfor -%}
{%- endblock widget_container_attributes -%}
{%- block button_attributes -%}