8000 bug #15445 do not remove space between attributes (greg0ire) · symfony/symfony@0064d9e · GitHub
[go: up one dir, main page]

Skip to content

Commit 0064d9e

Browse files
committed
bug #15445 do not remove space between attributes (greg0ire)
This PR was merged into the 2.3 branch. Discussion ---------- do not remove space between attributes | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | n/a 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 eleme DAB2 nts are also removed. Commits ------- 8d2b888 do not remove space between attributes
2 parents 328ec01 + 8d2b888 commit 0064d9e

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 -%}
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