8000 bug #25278 Fix for missing whitespace control modifier in form layout… · symfony/symfony@783cd69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 783cd69

Browse files
committed
bug #25278 Fix for missing whitespace control modifier in form layout (kubawerlos)
This PR was merged into the 2.7 branch. Discussion ---------- Fix for missing whitespace control modifier in form layout | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25252 | License | MIT | Doc PR | - That single missing whitespace control modifier results in e.g. new line in `data-prototype` attribute when using CollectionType field type in form. Commits ------- 369075a Fix for missing whitespace control modifier in form layout
2 parents 0f8ff15 + 369075a commit 783cd69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
{% if not child.rendered %}
302302
{{- form_row(child) -}}
303303
{% endif %}
304-
{%- endfor %}
304+
{%- endfor -%}
305305

306306
{% if not form.methodRendered and form is rootform %}
307307
{%- do form.setMethodRendered() -%}
@@ -315,7 +315,7 @@
315315
{%- if form_method != method -%}
316316
<input type="hidden" name="_method" value="{{ method }}" />
317317
{%- endif -%}
318-
{% endif %}
318+
{% endif -%}
319319
{% endblock form_rest %}
320320

321321
{# Support #}

0 commit comments

Comments
 (0)
0