Templates which use {% spaceless %} cause an error in Drupal 10

Created on 22 September 2023, 9 months ago

Problem/Motivation

In Drupal 10 templates which use {% spaceless %} result in the following error:

php Error Twig\Error\SyntaxError: Unknown "spaceless" tag. in Twig\Parser->subparse()

Steps to reproduce

Proposed resolution

Replace {% spaceless %} with {% apply spaceless %}

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India roshni27

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

Comments & Activities

Production build 0.69.0 2024