Bug: Incorrect Rendering of Dollar Amounts in Output #577

Closed
opened 2025-11-11 14:26:28 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @tusing on GitHub (Apr 2, 2024).

Bug Report

Description

Bug Summary:
The AI-generated output contains dollar amounts, but they are being incorrectly rendered with LaTeX-style formatting (e.g., $740 for $5 million is rendered as 740for5 million in LaTeX font). This makes the output difficult to read and understand.

Steps to Reproduce:

  1. Provide the AI with input text containing dollar amounts and insurance coverage details, as shown in the example.
  2. Generate the AI output based on the provided input.
  3. Observe the rendered output image.

Expected Behavior:
The dollar amounts in the AI-generated output should be correctly rendered as regular text, without any LaTeX-style formatting. For example, "$740 for $5 million coverage" should appear as is, without any distortion.

Actual Behavior:
The dollar amounts in the AI-generated output are being rendered with LaTeX-style formatting, such as "740for5 million coverage".

Environment

  • Operating System: macOS, iOS
  • Browser (if applicable): Safari

Logs and Screenshots

Screenshots (if applicable):

Screenshot 2024-04-01 at 5 35 51 PM

Additional Information

  • The issue seems to be related to the rendering of dollar amounts specifically, as other parts of the output appear to be rendered correctly.
  • This bug may be caused by a conflict with LaTeX-style formatting or an issue with the rendering engine used in the project.
Originally created by @tusing on GitHub (Apr 2, 2024). # Bug Report ## Description **Bug Summary:** The AI-generated output contains dollar amounts, but they are being incorrectly rendered with LaTeX-style formatting (e.g., `$740 for $5 million` is rendered as *740for*5 million in LaTeX font). This makes the output difficult to read and understand. **Steps to Reproduce:** 1. Provide the AI with input text containing dollar amounts and insurance coverage details, as shown in the example. 2. Generate the AI output based on the provided input. 3. Observe the rendered output image. **Expected Behavior:** The dollar amounts in the AI-generated output should be correctly rendered as regular text, without any LaTeX-style formatting. For example, "$740 for $5 million coverage" should appear as is, without any distortion. **Actual Behavior:** The dollar amounts in the AI-generated output are being rendered with LaTeX-style formatting, such as "*740for*5 million coverage". ## Environment - **Operating System:** macOS, iOS - **Browser (if applicable):** Safari ## Logs and Screenshots **Screenshots (if applicable):** <img width="717" alt="Screenshot 2024-04-01 at 5 35 51 PM" src="https://github.com/open-webui/open-webui/assets/1077203/d850059b-7698-4da9-b6ca-7df8964ccbee"> ## Additional Information - The issue seems to be related to the rendering of dollar amounts specifically, as other parts of the output appear to be rendered correctly. - This bug may be caused by a conflict with LaTeX-style formatting or an issue with the rendering engine used in the project.
Author
Owner

@tusing commented on GitHub (Apr 2, 2024):

@tjbck it looks like a fix was introduced in #130 (here) but then regressed in #835 (here). How do we feel about re-enabling the hotfix in #130 ?

@tusing commented on GitHub (Apr 2, 2024): @tjbck it looks like a fix was introduced in #130 ([here](https://github.com/open-webui/open-webui/pull/130/commits/ba71d48bcfc8e8b3482542ed4679c3b0e6a00518#diff-b053d99198aa22763bd4d86a77869522b66143a5c935936f0d17e0376476cc9fR108)) but then regressed in #835 ([here](https://github.com/open-webui/open-webui/blame/5558514ff19c088fd0c8c87205d7a89a0d115a1c/src/lib/components/chat/Messages/ResponseMessage.svelte#L131)). How do we feel about re-enabling the hotfix in #130 ?
Author
Owner

@justinh-rahb commented on GitHub (Apr 2, 2024):

LaTeX has been a thorn in our side for a bit.. 😔

@justinh-rahb commented on GitHub (Apr 2, 2024): LaTeX has been a thorn in our side for a bit.. 😔
Author
Owner

@tjbck commented on GitHub (Apr 2, 2024):

Should be fixed on our dev branch now, let us know if the issue persists!

@tjbck commented on GitHub (Apr 2, 2024): Should be fixed on our dev branch now, let us know if the issue persists!
Author
Owner

@tusing commented on GitHub (Apr 2, 2024):

Thank you. Closing this as fixed due to 2c03021, will re-open if needed!

@tusing commented on GitHub (Apr 2, 2024): Thank you. Closing this as fixed due to 2c03021, will re-open if needed!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#577