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

Created on 22 September 2023, about 1 year 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.71.5 2024