mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
Csharp code pasting saves with improper formatting and in 1 line #3543
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ninicdennis on GitHub (Feb 2, 2025).
Bug Report
Installation Method
[Describe the method you used to install the project, e.g., git clone, Docker, pip, etc.]
All setup with docker
Environment
Open WebUI Version: v0.5.7
Ollama (if applicable): 0.5.7-0-ga420a45-dirty
Operating System: Fedora Linux
Browser (if applicable): Brave
Confirmation:
Expected Behavior:
The code block will properly format the csharp code so that it is not contained on a single line.
Actual Behavior:
After sending the message, the format will automatically place everything onto one line, it does not seem to matter whether tab or space indents was used.
Description
Bug Summary:
When submitting a message using csharp and pasting in code from Rider, the code will not format properly and return in one line.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]