Skip to content

Commit 24c4984

Browse files
committed
minor symfony#11554 [TwigBridge] [Form] Fixed some extra empty spaces (eiannone)
This PR was squashed before being merged into the 2.3 branch (closes symfony#11554). Discussion ---------- [TwigBridge] [Form] Fixed some extra empty spaces | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Extra empty spaces for choice_widget_collapsed, they were introduced by commit symfony@8f9ed3e by @chrisguitarguy Commits ------- 16bd88e [TwigBridge] [Form] Fixed some extra empty spaces
2 parents 1ba7c72 + 16bd88e commit 24c4984

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
@@ -52,9 +52,9 @@
5252
{%- endblock choice_widget_expanded %}
5353

5454
{% block choice_widget_collapsed -%}
55-
{% if required and empty_value is none and not empty_value_in_choices and not multiple %}
55+
{% if required and empty_value is none and not empty_value_in_choices and not multiple -%}
5656
{% set required = false %}
57-
{% endif %}
57+
{%- endif -%}
5858
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
5959
{% if empty_value is not none -%}
6060
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ empty_value|trans({}, translation_domain) }}</option>

0 commit comments

Comments
 (0)