mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Allow coloring multi-level quotes
To make >>mahkoh happy
This commit is contained in:
parent
5fd2828dfa
commit
33b32bcc33
|
@ -63,7 +63,7 @@ QString MessageAction::getMessage(QString div)
|
||||||
message_ = "";
|
message_ = "";
|
||||||
for (QString& s : messageLines)
|
for (QString& s : messageLines)
|
||||||
{
|
{
|
||||||
if (QRegExp("^>( |[^_\\d\\W]).*").exactMatch(s))
|
if (QRegExp("^>( |>|[^_\\d\\W]).*").exactMatch(s))
|
||||||
message_ += "<span class=quote>" + s + "</span><br/>";
|
message_ += "<span class=quote>" + s + "</span><br/>";
|
||||||
else
|
else
|
||||||
message_ += s + "<br/>";
|
message_ += s + "<br/>";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user