Replace Twig spaceless filter with whitespace control

Created on 25 January 2025, 2 months ago

Problem/Motivation

In πŸ› Apply spaceless to templates to remove whitespaces RTBC , we applied Twig's spaceless filter to remove unwanted whitespace in the output. But, this filter is deprecated in 3.12.

In order for this module to continue to work in the future, we should replace it with Twig's whitespace control features.

Proposed resolution

Add whitespace control to all Twig {{ ... }}/{% ... %}/{# ... #} blocks that were previously enclosed between {% apply spaceless %}/{% endapply %} (i.e.: change them to {{- ... -}}/{%- ... -%}/{#- ... -#})

Remaining tasks

  1. Write a patch
  2. Review and feedback
  3. RTBC and feedback
  4. Commit
  5. Release

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024