[GH-ISSUE #4465] [Issue]: Translated messages do not preserve line breaks #2426

Closed
opened 2026-10-21 05:48:06 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @minikkeuen on GitHub (Aug 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4465

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Translated messages do not consistently preserve original line breaks.

Additionally, translated text relies on hardcoded typography classes, making it difficult for themes to style translated content consistently.

Expected behavior

  • Translated messages should preserve original line breaks.
  • Themes should be able to target translated text with a stable CSS class.

Actual behavior

  • Line breaks are collapsed in translated messages.
  • Styling translated text consistently requires overriding hardcoded classes.

Steps to reproduce

  1. Open any chat.
  2. Translate a message containing multiple paragraphs or line breaks.
  3. Observe that the translated message does not preserve the original formatting.

Environment

  • Marinara Engine version: v2.4.0
  • Install type: Source
  • OS + version: macOS 26.5.2
  • Browser or app shell: Desktop app

Logs, screenshots, or video

N/A

Additional context

I have a fix ready that:

  • preserves translated message line breaks using whitespace-pre-wrap
  • adds a dedicated translation-text class for translated message containers

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @minikkeuen on GitHub (Aug 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4465 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Translated messages do not consistently preserve original line breaks. Additionally, translated text relies on hardcoded typography classes, making it difficult for themes to style translated content consistently. ## Expected behavior - Translated messages should preserve original line breaks. - Themes should be able to target translated text with a stable CSS class. ## Actual behavior - Line breaks are collapsed in translated messages. - Styling translated text consistently requires overriding hardcoded classes. ## Steps to reproduce 1. Open any chat. 2. Translate a message containing multiple paragraphs or line breaks. 3. Observe that the translated message does not preserve the original formatting. ## Environment - Marinara Engine version: v2.4.0 - Install type: Source - OS + version: macOS 26.5.2 - Browser or app shell: Desktop app ## Logs, screenshots, or video N/A ## Additional context I have a fix ready that: - preserves translated message line breaks using `whitespace-pre-wrap` - adds a dedicated `translation-text` class for translated message containers ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:06 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 2, 2026):

Thank you!

<!-- gh-comment-id:5158791947 --> @SpicyMarinara commented on GitHub (Aug 2, 2026): Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2426
No description provided.