Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 783cd69

Browse filesBrowse 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
Copy full SHA for 783cd69

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.