[PR #20283] [MERGED] fix: normalize Windows CRLF line endings in clipboard text #25546

Closed
opened 2026-04-20 05:59:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: fix/clipboard-crlf-newlines


📝 Commits (1)

  • cd8ccc9 fix: 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.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/20283 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 12/30/2025 **Status:** ✅ Merged **Merged:** 12/31/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/clipboard-crlf-newlines` --- ### 📝 Commits (1) - [`cd8ccc9`](https://github.com/open-webui/open-webui/commit/cd8ccc94c52d1486facd1bb5aeacca43ff0ab660) fix: normalize Windows CRLF line endings in clipboard text ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/channel/MessageInput.svelte` (+1 -1) 📝 `src/lib/components/chat/MessageInput.svelte` (+1 -1) </details> ### 📄 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)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 05:59:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#25546