Do not add space before or after the separator

Created on 23 January 2025, 3 months ago

Problem/Motivation

The code in hierarchical-term-formatter.html.twig adds space before and after the separator. This means that if separator is set to , (comma followed by space), for example, there will be a space after the word and before the comma. This is not how commas are supposed to be used.

Steps to reproduce

Set separator is set to , . Observer the extra space.

Proposed resolution

Use Twig's whitespace control to remove the extra space in hierarchical-term-formatter.html.twig.

Remaining tasks

Decide if a migration strategy is needed (see "API changes"). Implement.

User interface changes

None.

API changes

People may be relying on the current behaviour. If separator is set to, for example, ยป (without spaces) rather than ยป (with spaces), they may not like how it appears.

Data model changes

None.

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada Liam Morland Ontario, CA ๐Ÿ‡จ๐Ÿ‡ฆ

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024