When formatting text inside the input field manually, leading whitespaces become non-breaking spaces
Originally created by @skerit on GitHub (Oct 25, 2024).
# Bug Report
## Installation Method
Docker
## Environment
- **Open WebUI Version:** v0.3.33
- **Operating System:** Eandeavouros linux
- **Browser (if applicable):** Chromium 130
**Confirmation:**
- [x ] I have read and followed all the instructions provided in the README.md.
- [x ] I am on the latest version of both Open WebUI and Ollama.
- [x ] I have included the browser console logs.
- [ ] I have included the Docker container logs.
- [x ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## Expected Behavior:
When I paste something in the input field, I expect it to be pasted as-is.
## Actual Behavior:
It's removing all the leading whitespace (unless it's a non-breaking space)
And it's adding some strange markdown formatting
## Description
**Bug Summary:**
The leading whitespaces are removed, weird formatting is added
## Reproduction Details
**Steps to Reproduce:**
Copy some text and paste it into the input field, for example:
```
test
test
```
or even worse:
```
"version": {
"major": 1,
"minor": 1,
"patch": 0
},
```
## Logs and Screenshots
**Browser Console Logs:**
**Docker Container Logs:**
**Screenshots/Screen Recordings (if applicable):**



## Additional Information
When formatting text inside the input field manually, leading whitespaces become non-breaking spaces
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @skerit on GitHub (Oct 25, 2024).
Bug Report
Installation Method
Docker
Environment
Confirmation:
Expected Behavior:
When I paste something in the input field, I expect it to be pasted as-is.
Actual Behavior:
It's removing all the leading whitespace (unless it's a non-breaking space)
And it's adding some strange markdown formatting
Description
Bug Summary:
The leading whitespaces are removed, weird formatting is added
Reproduction Details
Steps to Reproduce:
Copy some text and paste it into the input field, for example:
or even worse:
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):
Additional Information
When formatting text inside the input field manually, leading whitespaces become non-breaking spaces
@tjbck commented on GitHub (Oct 25, 2024):
Fixed on dev!