Fix handling line separators

BUG: 468977
(cherry picked from commit 2b06679be6)
This commit is contained in:
Tobias Fella
2023-04-28 02:43:29 +02:00
parent 3ee6877b15
commit 40358cba85
2 changed files with 11 additions and 0 deletions

View File

@@ -169,6 +169,7 @@ QString TextHandler::handleRecievePlainText(Qt::TextFormat inputFormat, const bo
m_dataBuffer.replace(QStringLiteral("<br />\n"), QStringLiteral(" "));
m_dataBuffer.replace(QStringLiteral("<br />"), QStringLiteral(" "));
m_dataBuffer.replace(u'\n', QStringLiteral(" "));
m_dataBuffer.replace(u'\u2028', " ");
}
// Strip all tags/attributes except code blocks which will be escaped.