[GH-ISSUE #7492] Text editor deletes newlines after saving and reloading document #14767

Closed
opened 2026-04-19 21:03:27 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @sherbie on GitHub (Nov 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7492

Bug Report

Installation Method

git checkout v0.4.6
git pull

docker build -t open-webui .

Environment

  • Open WebUI Version: v0.4.6

  • Ollama (if applicable): 0.4.5

  • Operating System: Ubuntu 24.04.1 LTS

  • Browser (if applicable): Brave 1.73.91

Expected Behavior:

After reloading a saved document, all characters and formatting should be unchanged.

Actual Behavior:

After reloading a saved document, newlines are deleted.

Example:

Document contents after saving:

a

a

Document contents after reloading page:

a
a

Description

Bug Summary:
Saved documents have all newlines deleted between the last newline of the previous line and the next line.

Reproduction Details

Steps to Reproduce:

  1. Create a new document
  2. Press keys when the document is open: a [return] [return] a
  3. Save document
  4. Open document
Originally created by @sherbie on GitHub (Nov 30, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7492 # Bug Report ## Installation Method ``` git checkout v0.4.6 git pull docker build -t open-webui . ``` ## Environment - **Open WebUI Version:** v0.4.6 - **Ollama (if applicable):** 0.4.5 - **Operating System:** Ubuntu 24.04.1 LTS - **Browser (if applicable):** Brave 1.73.91 ## Expected Behavior: After reloading a saved document, all characters and formatting should be unchanged. ## Actual Behavior: After reloading a saved document, newlines are deleted. Example: Document contents after saving: ``` a a ``` Document contents after reloading page: ``` a a ``` ## Description **Bug Summary:** Saved documents have all newlines deleted between the last newline of the previous line and the next line. ## Reproduction Details **Steps to Reproduce:** 1. Create a new document 2. Press keys when the document is open: `a` `[return]` `[return]` `a` 3. Save document 4. Open document
Author
Owner

@tjbck commented on GitHub (Nov 30, 2024):

should be address in dev, testing wanted here!

<!-- gh-comment-id:2509471736 --> @tjbck commented on GitHub (Nov 30, 2024): should be address in dev, testing wanted here!
Author
Owner

@sherbie commented on GitHub (Dec 2, 2024):

Resolved in 0.4.7. Nice job!

<!-- gh-comment-id:2510914123 --> @sherbie commented on GitHub (Dec 2, 2024): Resolved in 0.4.7. Nice job!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14767