Problem/Motivation

spaceless tag has been removed in Twig 3. It is not used in Drupal 9 anymore.

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 %}

Remaining tasks

Create a patch.

User interface changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

geinosky created an issue. See original summary.

grimreaper’s picture

Assigned: Unassigned » grimreaper
grimreaper’s picture

Title: Remove usage of spaceless tag in Twig templates » Remove usage of spaceless tag in Twig templates and fix tests
Category: Bug report » Task

  • Grimreaper committed ffc62713 on 8.x-1.x
    Issue #3363041 by Grimreaper: Fix tests and code quality
    

  • Grimreaper committed 78dad34c on 8.x-1.x authored by geinosky
    Issue #3363041 by geinosky: Remove usage of spaceless tag in Twig...
grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.