mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 05:47:50 -05:00
[PR #20283] [MERGED] fix: normalize Windows CRLF line endings in clipboard text #25546
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/20283
Author: @Classic298
Created: 12/30/2025
Status: ✅ Merged
Merged: 12/31/2025
Merged by: @tjbck
Base:
dev← Head:fix/clipboard-crlf-newlines📝 Commits (1)
cd8ccc9fix: normalize Windows CRLF line endings in clipboard text📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/channel/MessageInput.svelte(+1 -1)📝
src/lib/components/chat/MessageInput.svelte(+1 -1)📄 Description
On Windows, clipboard text uses CRLF (\r\n) line endings which can cause newlines to be lost or displayed incorrectly when pasted via the {{CLIPBOARD}} variable.
Fixed by converting CRLF to LF before inserting clipboard text.
Fixes #19370
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.