[GH-ISSUE #17839] issue: Copying text from edit box and pasting it elsewhere produces 3 blank lines for each original blank line #33942

Closed
opened 2026-04-25 07:49:24 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @rotemdan on GitHub (Sep 28, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17839

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.31

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Regular browser text box behavior.

Actual Behavior

On a recent update (currently I'm at v0.6.31), empty lines started to use more vertical space.

This text has a single empty line (although it looks like more):
Screenshot_2

But copying the text from the edit box and pasting it elsewhere now adds 3 empty lines for a single empty line in the text box (this is after pasting in VSCode)
Screenshot_3

I have rich text and predictive text disabled, so it's not related to any of those.

Also, it shows some sort of rich-text like behavior when I type the / character. This is new (didn't happen before a recent update):

Screenshot_4

Steps to Reproduce

Write text with some blank lines in the chat text box and copy and paste it elsewhere.

Logs & Screenshots

Included above.

Additional Information

Rich and predictive text modes disabled.

Also happens in latest Firefox (so not likely Chromium specific).

Originally created by @rotemdan on GitHub (Sep 28, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17839 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.31 ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Regular browser text box behavior. ### Actual Behavior On a recent update (currently I'm at `v0.6.31`), empty lines started to use more vertical space. This text has a single empty line (although it looks like more): <img width="1186" height="278" alt="Screenshot_2" src="https://github.com/user-attachments/assets/f9a84563-e428-4dcb-ab0b-4c6ccd6c1e0e" /> But copying the text from the edit box and pasting it elsewhere now adds 3 empty lines for a single empty line in the text box (this is after pasting in VSCode) <img width="397" height="158" alt="Screenshot_3" src="https://github.com/user-attachments/assets/1cf3dcc9-f86a-4665-a176-3a894f474c1f" /> I have rich text and predictive text disabled, so it's not related to any of those. Also, it shows some sort of rich-text like behavior when I type the `/` character. This is new (didn't happen before a recent update): <img width="1186" height="163" alt="Screenshot_4" src="https://github.com/user-attachments/assets/c9a3703a-1be3-4da8-82a2-adbf85ea2eb5" /> ### Steps to Reproduce Write text with some blank lines in the chat text box and copy and paste it elsewhere. ### Logs & Screenshots Included above. ### Additional Information Rich and predictive text modes disabled. Also happens in latest Firefox (so not likely Chromium specific).
GiteaMirror added the bug label 2026-04-25 07:49:24 -05:00
Author
Owner

@tjbck commented on GitHub (Sep 28, 2025):

Addressed in dev!

<!-- gh-comment-id:3344318022 --> @tjbck commented on GitHub (Sep 28, 2025): Addressed in dev!
Author
Owner

@rotemdan commented on GitHub (Sep 29, 2025):

Thanks a lot. It fixed it when copying text I've written directly in the text box.

But now if I copy text from an external source like VScode:

Image

And paste it into the edit box:

Image

And then copy it back to VSCode, blank lines are lost:

Image

I noticed it in the new version from a few hours ago and initially didn't understand why it was sometimes happening and sometimes didn't, until I realized it happened when I pasted text and then copied it back to somewhere else (I wrote a long message that initially wrote in VSCode, then modified it in open-webui, then copied it back to VSCode and then all the empty lines were gone).

<!-- gh-comment-id:3348463905 --> @rotemdan commented on GitHub (Sep 29, 2025): Thanks a lot. It fixed it when copying text I've written directly in the text box. But now if I copy text from an external source like VScode: <img width="246" height="111" alt="Image" src="https://github.com/user-attachments/assets/1c0a122a-a7e2-41d0-bf7f-379a09a7baff" /> And paste it into the edit box: <img width="174" height="129" alt="Image" src="https://github.com/user-attachments/assets/492d7e40-e055-4133-95ca-7a58e338a316" /> And then copy it back to VSCode, blank lines are lost: <img width="179" height="65" alt="Image" src="https://github.com/user-attachments/assets/57b608c6-549f-4c76-91d7-873dba2fc98a" /> I noticed it in the new version from a few hours ago and initially didn't understand why it was sometimes happening and sometimes didn't, until I realized it happened when I pasted text and then copied it back to somewhere else (I wrote a long message that initially wrote in VSCode, then modified it in `open-webui`, then copied it back to VSCode and then all the empty lines were gone).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33942