From 6c0e80be6fccbaeaa82936a64c2d8c294ff5d1fa Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Wed, 27 Oct 2021 00:19:59 +0200 Subject: [PATCH] Convert newlines in weapon descriptions --- src/routes/weapons/[id].svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/weapons/[id].svelte b/src/routes/weapons/[id].svelte index 7a754d09..ef6a1bb4 100644 --- a/src/routes/weapons/[id].svelte +++ b/src/routes/weapons/[id].svelte @@ -102,11 +102,11 @@

{$t(`weapon.${weapon.type}`)}

-

{weapon.description}

+

{@html weapon.description.replace(/\\n/g, '
')}

{#if weapon.skill.name}

{weapon.skill.name}

-

{@html weapon.skill.description}

+

{@html weapon.skill.description.replace(/\\n/g, '
')}

{/if}