File 0001-Use-n-instead-of-br-for-the-extra-part-of-the-summar.patch of Package plasma5-pk-updates.9390
From 339e7d5b027c9907fbced789c50c75b249b23dd6 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Wed, 9 May 2018 22:32:17 +0200
Subject: [PATCH] Use \n instead of <br> for the extra part of the summary
Summary:
The tooltip text only supports plaintext, so it contained a literal "<br>".
A "\n" works as a newline in both the expanded representation and the tooltip.
Test Plan:
Hovered over the icon with available security updates. Now the text
includes a newline instead of a literal "<br>".
Reviewers: lukas, jgrulich
Subscribers: plasma-devel
Differential Revision: https://phabricator.kde.org/D12790
---
src/declarative/pkupdates.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: plasma-pk-updates-0.3.1/src/declarative/pkupdates.cpp
===================================================================
--- plasma-pk-updates-0.3.1.orig/src/declarative/pkupdates.cpp
+++ plasma-pk-updates-0.3.1/src/declarative/pkupdates.cpp
@@ -131,7 +131,7 @@ QString PkUpdates::message() const
if (extra.isEmpty())
return msg;
else
- return msg + "<br>" + i18n("(including %1)", extra.join(i18n(" and ")));
+ return msg + "\n" + i18n("(including %1)", extra.join(i18n(" and ")));
} else if (!isNetworkOnline()) {
return i18n("Your system is offline");
}