an attempt to display text in a better way with QTextDocument + QTextBrowser

This commit is contained in:
Blue 2022-04-27 01:17:53 +03:00
parent 51ac1ac709
commit d86e2c28a0
Signed by: blue
GPG key ID: 9B203B252A63EE38
7 changed files with 88 additions and 338 deletions

View file

@ -40,5 +40,5 @@ QString Shared::processMessageBody(const QString& msg)
{
QString processed = msg.toHtmlEscaped();
processed.replace(urlReg, "<a href=\"\\1\">\\1</a>");
return "<p style=\"white-space: pre-wrap;\">" + processed + "</p>";
return "<p style=\"white-space: pre-wrap; line-height: 1em;\">" + processed + "</p>";
}