formatted_body newlines render as extra line breaks #24

Open
opened 2026-10-05 19:03:35 +00:00 by robocub · 0 comments
Member

Upstream: commetchat/commet#903

formatted_body is HTML, so literal \n characters should collapse to whitespace outside <pre>. Commet renders them as line breaks, so messages that already use <p>/<br> come out double-spaced. Bridges (mautrix) often send HTML like this, and Element and FluffyChat render it correctly.


Imported from Commet's tracker during the 2026-10-05 triage. As of that date it was open upstream with no assignee and no open PR. Nothing gets posted back to their tracker. If upstream fixes it first, close this issue and drop our patch on the next rebase (record the change in VOMMET_CHANGES.md).

Upstream: [commetchat/commet#903](https://github.com/commetchat/commet/issues/903) `formatted_body` is HTML, so literal `\n` characters should collapse to whitespace outside `<pre>`. Commet renders them as line breaks, so messages that already use `<p>`/`<br>` come out double-spaced. Bridges (mautrix) often send HTML like this, and Element and FluffyChat render it correctly. --- *Imported from Commet's tracker during the 2026-10-05 triage. As of that date it was open upstream with no assignee and no open PR. Nothing gets posted back to their tracker. If upstream fixes it first, close this issue and drop our patch on the next rebase (record the change in VOMMET_CHANGES.md).*
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
nether/vommet#24
No description provided.