8000 do not remove space between attributes · symfony/symfony@8d2b888 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 8d2b888

Browse files
committed
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.
1 parent 328ec01 commit 8d2b888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304

305305
{%- block widget_container_attributes -%}
306306
{% if id is not empty %}id="{{ id }}" {% endif %}
307-
{%- for attrname, attrvalue in attr %}{{ attrname }}="{{ attrvalue }}" {%- endfor 4D47 -%}
307+
{%- for attrname, attrvalue in attr %}{{ attrname }}="{{ attrvalue }}" {% endfor -%}
308308
{%- endblock widget_container_attributes -%}
309309

310310
{%- block button_attributes -%}

0 commit comments

Comments
 (0)
0