Skip to content

Commit

Permalink
do not remove space between attributes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
greg0ire committed Aug 4, 2015
1 parent 328ec01 commit 8d2b888
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 8d2b888

Please sign in to comment.