Skip to content

Commit 8f6f2db

Browse files
royklutmannicolas-grekas
authored andcommitted
[Twig] Remove spaces to fix whitespace in tags
1 parent 410ecc5 commit 8f6f2db

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Resources/views/Form/bootstrap_3_layout.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@
178178
{% block form_help -%}
179179
{%- if help is not empty -%}
180180
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-block')|trim}) -%}
181-
182-
<span id="{{ id }}_help" {% for attrname, attrvalue in help_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
181+
<span id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
183182
{%- if translation_domain is same as(false) -%}
184183
{{- help -}}
185184
{%- else -%}

Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@
303303
{% block form_help -%}
304304
{%- if help is not empty -%}
305305
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' form-text text-muted')|trim}) -%}
306-
307-
<small id="{{ id }}_help" {% for attrname, attrvalue in help_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
306+
<small id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
308307
{%- if translation_domain is same as(false) -%}
309308
{{- help -}}
310309
{%- else -%}

Resources/views/Form/form_div_layout.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@
292292
{% block form_help -%}
293293
{%- if help is not empty -%}
294294
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-text')|trim}) -%}
295-
296-
<p id="{{ id }}_help" {% for attrname, attrvalue in help_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
295+
<p id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
297296
{%- if translation_domain is same as(false) -%}
298297
{{- help -}}
299298
{%- else -%}

0 commit comments

Comments
 (0)