mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 09:22:44 -05:00
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:
1 parent
217766ed0f
commit
2bebbb44e1
1 file changed
+1
-2
@@ -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'}
|
||||
|
||||
Reference in new issue
Block a user