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

Created on 17 February 2023, almost 2 years ago
Updated 31 July 2023, over 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()

Proposed resolution

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

πŸ› Bug report
Status

Fixed

Version

1.29

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cruno NJ

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

Comments & Activities

Production build 0.71.5 2024