mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00: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:
parent
217766ed0f
commit
2bebbb44e1
1 changed files with 1 additions and 2 deletions
|
|
@ -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'}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue