[TwigBridge] [Form] Fixed some extra empty spaces

This commit is contained in:
Emanuele Iannone 2014-08-03 20:25:41 +02:00 committed by Fabien Potencier
parent 1ba7c72b09
commit 16bd88e61f
1 changed files with 2 additions and 2 deletions

View File

@ -52,9 +52,9 @@
{%- endblock choice_widget_expanded %}
{% block choice_widget_collapsed -%}
{% if required and empty_value is none and not empty_value_in_choices and not multiple %}
{% if required and empty_value is none and not empty_value_in_choices and not multiple -%}
{% set required = false %}
{% endif %}
{%- endif -%}
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
{% if empty_value is not none -%}
<option value=""{% if required and value is empty %} selected="selected"{% endif %}>{{ empty_value|trans({}, translation_domain) }}</option>