Problem/Motivation
This might have been caused by me going a bit zealous replacing apply spaceless in my subtheme with the
{%- if condition -%}
<div>{{ value }}</div>
{%- endif -%}
changes I made to the clients custom theme psicinter_bootstrap (subtheme of wxt_bootstrap). (Drupal 12 happy twig)
Illustration:

Steps to reproduce
upgrade from WxT 5.4.x to WxT 6.3.x
Proposed resolution
See changes to the twig:
diff --git a/templates/system/fieldset.html.twig b/templates/system/fieldset.html.twig
index c3dc235..4647c0c 100644
--- a/templates/system/fieldset.html.twig
+++ b/templates/system/fieldset.html.twig
@@ -54,7 +54,7 @@
<legend{{ legend.attributes.addClass(legend_classes) }}>
<span{{ legend_span.attributes.addClass(legend_span_classes) }}>{{ legend.title }}</span>
{% if required %}
- <strong class="required">({{ 'required'|t }})</strong>
+ <strong class="required"> ({{ 'required'|t }})</strong>
{% endif %}
</legend>
<div class="fieldset-wrapper">
Remaining tasks
Review
User interface changes
Ensure a space before (required)
API changes
See suggested twig change.
Data model changes
N/A
Comments