mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #17958] issue: Tab characters in text pasted into chat textbox are removed after submission #33977
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?
Originally created by @rotemdan on GitHub (Oct 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17958
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.32
Ollama Version (if applicable)
No response
Operating System
Windows 11 24H2
Browser (if applicable)
Brave 1.82.172 (Official Build) (64-bit) Chromium: 140.0.7339.207
Confirmation
README.md.Expected Behavior
Tab characters preserved.
Actual Behavior
Seems to remove the tab characters. Issue likely started on latest release.
Steps to Reproduce
Paste some code with tab characters:

Result:

Logs & Screenshots
Included.
Additional Information
Also occurs in Firefox.
Rich text and predictive text modes disabled.
@rgaricano commented on GitHub (Oct 1, 2025):
This is caused by the paste handling logic in the RichTextInput component, which is used for the chat input field.
When richText mode is disabled (plain text mode), the component explicitly strips HTML formatting and processes the pasted content line by line, which can affect tab characters.
Try enabling RichText in userSettings/Interface/Input Section
@rotemdan commented on GitHub (Oct 1, 2025):
This seems to be likely a new issue in the latest release(s). Haven't seen it recently.
Rich Text mode has various issues for general text editing of complex markdown and other types of prompts. I don't think enabling it is would be an overall effective strategy. Not all users prefer it.
@tjbck commented on GitHub (Oct 1, 2025):
Should be addressed in dev, testing wanted here!
@silentoplayz commented on GitHub (Oct 1, 2025):
I can confirm this issue is fixed for code blocks on the
devbranch. I have also tested out OP's issue before the fix and could confirm the issue existed before the fix.But it is not solved for plain text (if that's determined to be an issue)
@tjbck commented on GitHub (Oct 1, 2025):
@silentoplayz the plain text one is purely cosmetic from the UI rendering side so this is working as intended, thanks for confirming!
@silentoplayz commented on GitHub (Oct 3, 2025):
Closing this issue.