From 2bebbb44e1a04b220f831aced950b0e334529988 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 20 Oct 2026 21:46:35 +0200 Subject: [PATCH] fix: extra space before italic, bold and linked text in chat messages (#32743) Since 0.12.3, chat messages show a stray space at the start of every paragraph and inside every italic, bold, struck-through or linked span, so an em dash followed by italic text renders with a visible gap. The edit view has no such space; it only appears in the displayed message. The stray space is gone and formatted text sits flush against its neighbours again. Fixes #32739 --- .../chat/Messages/Markdown/MarkdownInlineTokens.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte b/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte index e6ac9f6158..4c2732cf41 100644 --- a/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte +++ b/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte @@ -101,8 +101,7 @@ {#if inlineHtml !== null} {@html inlineHtml} -{/if} -{#each inlineHtml === null ? tokens : [] as token, tokenIdx (tokenIdx)} +{/if}{#each inlineHtml === null ? tokens : [] as token, tokenIdx (tokenIdx)} {#if token.type === 'escape'} {unescapeHtml(token.text)} {:else if token.type === 'html'}