mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
Input field unable to handle pasted text (converting to markdown?) #2460
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 @skerit on GitHub (Oct 25, 2024).
Bug Report
Installation Method
Docker
Environment
Confirmation:
Expected Behavior:
When I paste something in the input field, I expect it to be pasted as-is.
Actual Behavior:
It's removing all the leading whitespace (unless it's a non-breaking space)
And it's adding some strange markdown formatting
Description
Bug Summary:
The leading whitespaces are removed, weird formatting is added
Reproduction Details
Steps to Reproduce:
Copy some text and paste it into the input field, for example:
or even worse:
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):
Additional Information
When formatting text inside the input field manually, leading whitespaces become non-breaking spaces
@tjbck commented on GitHub (Oct 25, 2024):
Fixed on dev!