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:
parent
e9fa8de43d
commit
b6ccbfc62f
@ -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 {
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user