fix(options): render newline in button optionlabels as <br> (Base font size "XLarge / (20 px)")

The fontsize option label "XLarge&#10;(20 px)" in config.xml survived XML
parsing as a real newline, but gT() html-escapes LF to &#10; (HTMLEscape),
so splitting the gT()'d label on "\n" was a no-op and the entity printed
literally. Split the raw label first, then gT() each part separately.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-26 20:21:33 +01:00
commit 94a203a133

View file

@ -381,7 +381,7 @@
size/weight options below. HOUSE-STYLE: fontcolor, primarycolor and
secondarycolor are set per variant via variants/<client>.json. -->
<fontcolor type="colorpicker" category="Fonts" width="12" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
<fontsize type="buttons" category="Fonts" width="12" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge (20 px)">16px</fontsize>
<fontsize type="buttons" category="Fonts" width="12" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge&#10;(20 px)">16px</fontsize>
<!-- Row 124: "Default background color" — column 1 of the colors row in the
"Default fonts and colors" tab (that row is now 4 columns). It is also the
5th preset of the experimental color-chooser (navbarfontcolor dropdown +