Problem/Motivation

The whole site just shows "The website encountered an unexpected error. Please try again later."

In the error log I see:

wig\Error\SyntaxError: Unknown "spaceless" tag. in Twig\Parser->subparse() (line 1 of /var/www/html/docroot/modules/contrib/form_options_attributes/templates/form-options-attributes--select--options-attributes.html.twig).

Steps to reproduce

Enable and use form_options_attributes on D10

Proposed resolution

Use spaceless filter instead in Drupal 8 too to help new sites become compatible with Twig 3 / Drupal 10. https://twig.symfony.com/doc/3.x/filters/spaceless.html

Before:

{% spaceless %}

{% endspaceless %}

After:

{% apply spaceless %}

{% endapply %}

Comments

dahousecat created an issue. See original summary.

dahousecat’s picture

Status: Active » Closed (cannot reproduce)

Module already has this.
I had a patch to remove it :(