Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EWPP-3826: Remove spaceless filter from long text fields. #1357

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Conversation

nagyad
Copy link
Member

@nagyad nagyad commented Dec 15, 2023

No description provided.

{%- include 'field--bare.html.twig' -%}
</div>
{% endapply %}
{% if not label_hidden %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% if not label_hidden %}
{%- if not label_hidden -%}

Instead of the spaceless we can use the "-" in this and more places.
Not sure how many we need.
The purpose, from what I understand, is to remove whitespace caused by the template itself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks!

@donquixote
Copy link

Also a test could be useful:

  • Verify that spaces inside the content don't get removed.
  • Verify that whitespace from the template is removed (if we care about that).

@22Alexandra 22Alexandra merged commit 8a01402 into 3.x Jan 15, 2024
1 check passed
@22Alexandra 22Alexandra deleted the EWPP-3826 branch January 15, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants