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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user