[Twig] Remove spaces to fix whitespace in tags

This commit is contained in:
Roy Klutman 2018-12-17 23:22:53 +01:00 committed by Nicolas Grekas
parent 64e2449f8e
commit 82acc89840
3 changed files with 3 additions and 6 deletions

View File

@ -178,8 +178,7 @@
{% block form_help -%} {% block form_help -%}
{%- if help is not empty -%} {%- if help is not empty -%}
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-block')|trim}) -%} {%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-block')|trim}) -%}
<span id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
<span id="{{ id }}_help" {% for attrname, attrvalue in help_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
{%- if translation_domain is same as(false) -%} {%- if translation_domain is same as(false) -%}
{{- help -}} {{- help -}}
{%- else -%} {%- else -%}

View File

@ -303,8 +303,7 @@
{% block form_help -%} {% block form_help -%}
{%- if help is not empty -%} {%- if help is not empty -%}
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' form-text text-muted')|trim}) -%} {%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' form-text text-muted')|trim}) -%}
<small id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
<small id="{{ id }}_help" {% for attrname, attrvalue in help_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
{%- if translation_domain is same as(false) -%} {%- if translation_domain is same as(false) -%}
{{- help -}} {{- help -}}
{%- else -%} {%- else -%}

View File

@ -292,8 +292,7 @@
{% block form_help -%} {% block form_help -%}
{%- if help is not empty -%} {%- if help is not empty -%}
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-text')|trim}) -%} {%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ ' help-text')|trim}) -%}
<p id="{{ id }}_help"{% with { attr: help_attr } %}{{ block('attributes') }}{% endwith %}>
<p id="{{ id }}_help" {% for attrname, attrvalue in help_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
{%- if translation_domain is same as(false) -%} {%- if translation_domain is same as(false) -%}
{{- help -}} {{- help -}}
{%- else -%} {%- else -%}