From bfa08d178f9449b90c1040b5bdf96147d64b58c4 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 5 Dec 2022 00:26:20 +0100 Subject: [PATCH] Remove \r\n linebreaks in roomlist subtitles BUG: 462575 --- src/neochatroom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 2d9ca3578..312a3f0f2 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -329,7 +329,7 @@ QString NeoChatRoom::subtitleText() { static const QRegularExpression blockquote("(\r\n\t|\n|\r\t|)> "); static const QRegularExpression heading("(\r\n\t|\n|\r\t|)\\#{1,6} "); - static const QRegularExpression newlines("(\r\n\t|\n|\r\t)"); + static const QRegularExpression newlines("(\r\n\t|\n|\r\t|\r\n)"); static const QRegularExpression bold1("(\\*\\*|__)(?=\\S)([^\\r]*\\S)\\1"); static const QRegularExpression bold2("(\\*|_)(?=\\S)([^\\r]*\\S)\\1"); static const QRegularExpression strike1("~~(.*)~~");