8000 Use spaceless balises in Twig templates · symfony/symfony@c74e0dc · GitHub
[go: up one dir, main page]

Skip to content

Commit c74e0dc

Browse files
committed
Use spaceless balises in Twig templates
1 parent 8b937ff commit c74e0dc

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
{# Help #}
159159

160160
{% block form_help -%}
161-
{% if help is not empty %}
161+
{%- if help is not empty -%}
162162
<span id="{{ id }}_help" class="help-block">{{ translation_domain is same as(false) ? help : help|trans({}, translation_domain) }}</span>
163-
{% endif %}
163+
{%- endif -%}
164164
{%- endblock form_help %}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
{# Help #}
286286

287287
{% block form_help -%}
288-
{% if help is not empty %}
288+
{%- if help is not empty -%}
289289
<small id="{{ id }}_help" class="form-text text-muted">{{ translation_domain is same as(false) ? help : help|trans({}, translation_domain) }}</small>
290-
{% endif %}
290+
{%- endif -%}
291291
{%- endblock form_help %}

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
@@ -290,9 +290,9 @@
290290
{# Help #}
291291

292292
{% block form_help -%}
293-
{% if help is not empty %}
293+
{%- if help is not empty -%}
294294
<p id="{{ id }}_help" class="help-text">{{ translation_domain is same as(false) ? help : help|trans({}, translation_domain) }}</p>
295-
{% endif %}
295+
{%- endif -%}
296296
{%- endblock form_help %}
297297

298298
{# Rows #}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@
273273
{%- endif -%}
274274
<div class="row">
275275
<div class="large-12 columns{% if (not compound or force_error|default(false)) and not valid %} error{% endif %}">
276-
{{ form_label(form) }}
276+
{{- form_label(form) -}}
277277
{{- form_widget(form, widget_attr) -}}
278-
{{ form_help(form) }}
279-
{{ form_errors(form) }}
278+
{{- form_help(form) -}}
279+
{{- form_errors(form) -}}
280280
</div>
281281
</div>
282282
{%- endblock form_row %}

0 commit comments

Comments
 (0)
0