From c10f2fef8634bbea185da45291f9bb5ac25d9197 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Thu, 28 Mar 2013 15:15:41 +0100 Subject: [PATCH] Replace
with \n in Notifictation messages *
is not supported by all WMs * \n has broader support or will be sliently (i.e. without printing a character) ignored --- src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp index 389b07334..e1244e3d5 100644 --- a/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp +++ b/src/infoplugins/linux/fdonotify/FdoNotifyPlugin.cpp @@ -190,9 +190,9 @@ FdoNotifyPlugin::nowPlaying( const QVariant& input ) // Remark: If using xml-based markup in notifications, the supplied strings need to be escaped. QString album; if ( !hash[ "album" ].isEmpty() ) - album = tr( "
on %1", "%1 is an album name" ).arg( Qt::escape( hash[ "album" ] ) ); + album = tr( "\non %1", "%1 is an album name" ).arg( Qt::escape( hash[ "album" ] ) ); - messageText = tr( "%1
by %2%3.", "%1 is a title, %2 is an artist and %3 is replaced by either the previous message or nothing" ) + messageText = tr( "%1\nby %2%3.", "%1 is a title, %2 is an artist and %3 is replaced by either the previous message or nothing" ) .arg( Qt::escape( hash[ "title" ] ) ) .arg( Qt::escape( hash[ "artist" ] ) ) .arg( album );