Skip to content

Commit

Permalink
Merge pull request #1357 from openeuropa/EWPP-3826
Browse files Browse the repository at this point in the history
EWPP-3826: Remove spaceless filter from long text fields.
  • Loading branch information
22Alexandra authored Jan 15, 2024
2 parents e231357 + a153799 commit 8a01402
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions templates/field/field--text-long.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
* @see ./core/themes/stable/templates/field/field.html.twig
*/
#}
{% apply spaceless %}
{% if not label_hidden %}
{%
set title_classes = [
'ecl-u-type-bold',
'ecl-u-mb-m',
label_display == 'visually_hidden' ? 'visually-hidden',
]
%}
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
{% endif %}
<div class="ecl">
{%- include 'field--bare.html.twig' -%}
</div>
{% endapply %}
{%- if not label_hidden -%}
{%
set title_classes = [
'ecl-u-type-bold',
'ecl-u-mb-m',
label_display == 'visually_hidden' ? 'visually-hidden',
]
%}
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
{%- endif -%}
<div class="ecl">
{%- include 'field--bare.html.twig' -%}
</div>

0 comments on commit 8a01402

Please sign in to comment.