8000 bug #54425 [TwigBridge] Remove whitespaces from block form_help outpu… · symfony/symfony@f28e58e · GitHub
[go: up one dir, main page]

Skip to content

Commit f28e58e

Browse files
committed
bug #54425 [TwigBridge] Remove whitespaces from block form_help output (rosier)
This PR was merged into the 5.4 branch. Discussion ---------- [TwigBridge] Remove whitespaces from block form_help output | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT The block form_help adds unnecessary whitespaces to the output This is inconsistent with the rest of the output Commits ------- 4b62275 Remove whitespaces from block form_help
2 parents 7ba3d8e + 4b62275 commit f28e58e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,12 @@
361361
{# Help #}
362362

363363
{%- block form_help -%}
364-
{% set row_class = row_attr.class|default('') %}
365-
{% set help_class = ' form-text' %}
366-
{% if 'input-group' in row_class %}
364+
{%- set row_class = row_attr.class|default('') -%}
365+
{%- set help_class = ' form-text' -%}
366+
{%- if 'input-group' in row_class -%}
367367
{#- Hack to properly display help with input group -#}
368-
{% set help_class = ' input-group-text' %}
369-
{% endif %}
368+
{%- set help_class = ' input-group-text' -%}
369+
{%- endif -%}
370370
{%- if help is not empty -%}
371371
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ help_class ~ ' mb-0')|trim}) -%}
372372
{%- endif -%}

0 commit comments

Comments
 (0)
0