From f00e6d93dc4ec1f53ec471122f82f7024ef9b5be Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Wed, 15 Mar 2023 14:11:53 +0100 Subject: [PATCH] NotificationArea: Convert plain text to HTML to perserve format --- src/Gui/NotificationArea.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Gui/NotificationArea.cpp b/src/Gui/NotificationArea.cpp index 3577386929..53e27c644f 100644 --- a/src/Gui/NotificationArea.cpp +++ b/src/Gui/NotificationArea.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -938,6 +939,8 @@ void NotificationArea::showInNotificationArea() iconstr = QStringLiteral(":/icons/info.svg"); } + QString tmpmessage = convertFromPlainText(item->msg, Qt::WhiteSpaceMode::WhiteSpaceNormal); + msgw += QString::fromLatin1( " \ @@ -948,7 +951,7 @@ void NotificationArea::showInNotificationArea() ") .arg(iconstr) .arg(item->notifierName) - .arg(item->msg); + .arg(tmpmessage); // start a timer for each of these notifications that was not previously shown if (!item->shown) {