diff --git a/lib/pages/chat/events/html_message.dart b/lib/pages/chat/events/html_message.dart index e14b2be2..940c2e6b 100644 --- a/lib/pages/chat/events/html_message.dart +++ b/lib/pages/chat/events/html_message.dart @@ -49,17 +49,20 @@ class HtmlMessage extends StatelessWidget { final linkifiedRenderHtml = linkify( renderHtml, options: const LinkifyOptions(humanize: false), - ).map( - (element) { - if (element is! UrlElement || - element.text.contains('<') || - element.text.contains('>') || - element.text.contains('"')) { - return element.text; - } - return '${element.text}'; - }, - ).join(''); + ) + .map( + (element) { + if (element is! UrlElement || + element.text.contains('<') || + element.text.contains('>') || + element.text.contains('"')) { + return element.text; + } + return '${element.text}'; + }, + ) + .join('') + .replaceAll('\n', ''); final linkColor = textColor.withAlpha(150);