mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 09:03:51 -05:00
parent
2e49aa9183
commit
9dd24a6bb1
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue