Skip to content

Commit acab0a9

Browse files
committed
minor #11555 [TwigBridge] [Form] Fixed some extra empty spaces (eiannone)
This PR was merged into the 2.6-dev branch. 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 | The extra spaces were introduced by commit 8f9ed3e by @chrisguitarguy Commits ------- 5f06d96 Fixed some extra empty spaces
2 parents 09f252a + 5f06d96 commit acab0a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
{% block choice_widget_collapsed -%}
5555
{% 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>
@@ -95,14 +95,14 @@
9595
{% block datetime_widget -%}
9696
{% if widget == 'single_text' %}
9797
{{- block('form_widget_simple') -}}
98-
{% else %}
98+
{% else -%}
9999
<div {{ block('widget_container_attributes') }}>
100100
{{- form_errors(form.date) -}}
101101
{{- form_errors(form.time) -}}
102102
{{- form_widget(form.date) -}}
103103
{{- form_widget(form.time) -}}
104104
</div>
105-
{% endif %}
105+
{%- endif %}
106106
{%- endblock datetime_widget %}
107107

108108
{% block date_widget -%}
@@ -132,7 +132,7 @@
132132

133133
{% block number_widget -%}
134134
{# type="number" doesn't work with floats #}
135-
{% set type = type|default('text') %}
135+
{%- set type = type|default('text') %}
136136
{{- block('form_widget_simple') -}}
137137
{%- endblock number_widget %}
138138

0 commit comments

Comments
 (0)