forked from blue/squawk
an attempt to display text in a better way with QTextDocument + QTextBrowser
This commit is contained in:
parent
51ac1ac709
commit
d86e2c28a0
7 changed files with 88 additions and 338 deletions
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue