fix regular expression syntax for forum quote highlighting

fixes #3033
This commit is contained in:
David Bears 2025-10-16 14:45:44 -04:00
parent 2e49aa9183
commit 9dd24a6bb1
No known key found for this signature in database
GPG key ID: FB975E12C69F7177

View file

@ -67,7 +67,7 @@ void RsSyntaxHighlighter::highlightBlock(const QString &text)
{ {
if (text == "") return; if (text == "") return;
QRegularExpression endl("[\\r\\n\\x2028]"); //Usually 0x2028 character is used for newline, no idea why QRegularExpression endl("[\\r\\n\\N{U+2028}]"); //Usually 0x2028 character is used for newline, no idea why
int index = 0; int index = 0;
QStringList lines = text.split(endl); QStringList lines = text.split(endl);
foreach (const QString &cLine, lines) { foreach (const QString &cLine, lines) {