mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 10:52:34 +01:00
fix: Remove wrong rendered linebreak in html
This commit is contained in:
parent
44d7f61788
commit
715dca561f
@ -49,7 +49,8 @@ class HtmlMessage extends StatelessWidget {
|
||||
final linkifiedRenderHtml = linkify(
|
||||
renderHtml,
|
||||
options: const LinkifyOptions(humanize: false),
|
||||
).map(
|
||||
)
|
||||
.map(
|
||||
(element) {
|
||||
if (element is! UrlElement ||
|
||||
element.text.contains('<') ||
|
||||
@ -59,7 +60,9 @@ class HtmlMessage extends StatelessWidget {
|
||||
}
|
||||
return '<a href="${element.url}">${element.text}</a>';
|
||||
},
|
||||
).join('');
|
||||
)
|
||||
.join('')
|
||||
.replaceAll('\n', '');
|
||||
|
||||
final linkColor = textColor.withAlpha(150);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user