Skip to content

Commit

Permalink
bug #54425 [TwigBridge] Remove whitespaces from block form_help outpu…
Browse files Browse the repository at this point in the history
…t (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
  • Loading branch information
xabbuh committed Mar 28, 2024
2 parents 7ba3d8e + 4b62275 commit f28e58e
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -361,12 +361,12 @@
{# Help #}

{%- block form_help -%}
{% set row_class = row_attr.class|default('') %}
{% set help_class = ' form-text' %}
{% if 'input-group' in row_class %}
{%- set row_class = row_attr.class|default('') -%}
{%- set help_class = ' form-text' -%}
{%- if 'input-group' in row_class -%}
{#- Hack to properly display help with input group -#}
{% set help_class = ' input-group-text' %}
{% endif %}
{%- set help_class = ' input-group-text' -%}
{%- endif -%}
{%- if help is not empty -%}
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ help_class ~ ' mb-0')|trim}) -%}
{%- endif -%}
Expand Down

0 comments on commit f28e58e

Please sign in to comment.