Preserve paragraph breaks in the spotlight product's text

spotlightText is a plain textarea, and default HTML whitespace handling
collapsed admin-entered paragraph breaks into one run-on line.
This commit is contained in:
Marco
2026-08-25 12:36:07 +00:00
parent 13fb37eb5e
commit eb160cac61
+6 -1
View File
@@ -86,7 +86,12 @@ export async function ProductSpotlight() {
>
{product.spotlightHeadline || product.name}
</p>
<p className="text-body text-text-body">
{/* whitespace-pre-line — spotlightText is a plain textarea field,
and admin-entered paragraph breaks (e.g. the "Die Sieben"
spotlight copy) should render as actual line breaks instead of
collapsing into one run-on line like default HTML whitespace
handling would. */}
<p className="text-body text-text-body whitespace-pre-line">
{product.spotlightText || product.description}
</p>
{/* MwSt./Versand disclosure on its own line, not crammed into