mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #20211] [CLOSED] fix: Remove trailing spaces added to prompts after sending #64361
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20211
Author: @Classic298
Created: 12/27/2025
Status: ❌ Closed
Base:
dev← Head:fix-extra-space📝 Commits (2)
0b1889fUpdate RichTextInput.svelteef73a8eUpdate RichTextInput.svelte📊 Changes
1 file changed (+1 additions, -5 deletions)
View changed files
📝
src/lib/components/common/RichTextInput.svelte(+1 -5)📄 Description
fix: Remove trailing spaces added to prompts after sending
Fixes #20198
TurndownService was using the default
broption which converts<br>tags to" \n"(two trailing spaces + newline). This caused extra spaces to appear in user prompts when editing or copying messages that contained paragraph breaks.Changed TurndownService config to use
br: '\n'to convert line breaks without adding trailing spaces.Fixed
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.