1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix greentext

Thanks to dewbasaur for reporting the bug
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-12 22:24:29 +02:00
parent e9fa8de43d
commit b6ccbfc62f
2 changed files with 4 additions and 4 deletions

View File

@ -22,8 +22,8 @@ div.date {
white-space: nowrap; white-space: nowrap;
} }
div.quote { span.quote {
background-color: #6bc260; color: #6bc260;
} }
div.green { div.green {

View File

@ -102,9 +102,9 @@ QString MessageAction::getMessage()
for (QString& s : messageLines) for (QString& s : messageLines)
{ {
if (QRegExp("^[ ]*>.*").exactMatch(s)) if (QRegExp("^[ ]*>.*").exactMatch(s))
message_ += "<div class=quote>" + s.right(s.length()-4) + "</div><br>"; message_ += "<span class=quote>>" + s.right(s.length()-4) + "</span><br/>";
else else
message_ += s + "<br>"; message_ += s + "<br/>";
} }
message_ = message_.left(message_.length()-4); message_ = message_.left(message_.length()-4);