Created attachment 169707 [details] Copy of broken message SUMMARY Line breaks from "Bug Safari" are ignored. STEPS TO REPRODUCE 1. Load attached matrix message with formatted body OBSERVED RESULT No line breaks are visible in NeoChat (but are inside the formatted_body). They are visible in other clients (e.g. Elements on Android, webchat.kde.org ). Other HTML formatting (e.g. the links) work fine. EXPECTED RESULT Line breaks should be visible SOFTWARE/OS VERSIONS ADDITIONAL INFORMATION Bug Safari: https://invent.kde.org/bbonacci/bug-safari - see e.g. https://invent.kde.org/bbonacci/bug-safari/-/blob/master/safari.py?ref_type=heads#L75 where a line break is inserted. The HTML is using a self-closing BR element <br/> without a space between "r" and "/"
This happens when the line breaks are "<br />", and not when they're "<br>".
Scratch that, it seems like "<br>" and "<br />" are handled properly, but not "<br/>".
I've made a merge request for Bug Safari ( https://invent.kde.org/bbonacci/bug-safari/-/merge_requests/3 ) to include a space before the self-closing slash, but I think that maybe NeoChat should be a bit more relaxed in handling self-closing <br>-elements, too?
A possibly relevant merge request was started @ https://invent.kde.org/network/neochat/-/merge_requests/1876
Bug fix pushed: https://invent.kde.org/network/neochat/-/commit/ab4e1a86dcc4dc9046b0871394c8cac6a958a60b