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
This commit is contained in:
Classic298 2026-10-20 21:46:35 +02:00 • committed by GitHub
parent 217766ed0f
commit 2bebbb44e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,8 +101,7 @@
<!-- Keep paired inline HTML tags together; sanitizing individual tags loses their contents. -->
{#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'}