Text editor does not respect whitespace characters or formatting symbols #4218

Closed
opened 2025-11-11 15:49:00 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @sherbie on GitHub (Feb 28, 2025).

Bug Report

Installation Method

git checkout v0.5.18
docker build -t open-webui .
docker run --network=host -e GLOBAL_LOG_LEVEL="DEBUG" -e WEBUI_AUTH=False -e OLLAMA_HOST=0.0.0.0 -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui open-webui

Environment

  • Open WebUI Version: v0.5.18

  • Ollama (if applicable): v0.5.11

  • Operating System: Ubuntu 24.04.2 LTS

  • Browser (if applicable): Brave 1.75.181 Chromium: 133.0.6943.141

Expected Behavior:

Editor should not remove any whitespace or formatting symbols from the document.

Actual Behavior:

After either uploading new documents or creating new documents from scratch in the editor, formatting symbols (e.g. # _ *) and newlines are deleted after saving.

This bug appeared sometime around v0.5.12. I rolled back to v0.5.11 to confirm that the behavior was correct.

Description

Bug Summary:

  • Uploaded documents have their formatting broken and newlines removed
  • Modifying said uploaded documents by introducing newlines and then saving them reproduces the same behavior

Reproduction Details

Steps to Reproduce:

  • create a text file with the following content:
# a
b
c
  • upload file to knowledge base
  • open file in editor view
  • file contents look like this:
# a b c
  • notice that clicking another document in the knowledge base view and then clicking the newly created document causes the formatting to change (again)
Originally created by @sherbie on GitHub (Feb 28, 2025). # Bug Report ## Installation Method ``` git checkout v0.5.18 docker build -t open-webui . docker run --network=host -e GLOBAL_LOG_LEVEL="DEBUG" -e WEBUI_AUTH=False -e OLLAMA_HOST=0.0.0.0 -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui open-webui ``` ## Environment - **Open WebUI Version:** v0.5.18 - **Ollama (if applicable):** v0.5.11 - **Operating System:** Ubuntu 24.04.2 LTS - **Browser (if applicable):** Brave 1.75.181 Chromium: 133.0.6943.141 ## Expected Behavior: Editor should not remove any whitespace or formatting symbols from the document. ## Actual Behavior: After either uploading new documents or creating new documents from scratch in the editor, formatting symbols (e.g. `# _ *`) and newlines are deleted after saving. This bug appeared sometime around v0.5.12. I rolled back to v0.5.11 to confirm that the behavior was correct. ## Description **Bug Summary:** - Uploaded documents have their formatting broken and newlines removed - Modifying said uploaded documents by introducing newlines and then saving them reproduces the same behavior ## Reproduction Details **Steps to Reproduce:** - create a text file with the following content: ``` # a b c ``` - upload file to knowledge base - open file in editor view - file contents look like this: ``` # a b c ``` - notice that clicking another document in the knowledge base view and then clicking the newly created document causes the formatting to change (again)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4218