Commit bc72a72e authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Trim kwrited text

Avoids having empty lines at the beginning leaving a gap between Plasma notification
summary and actual message text

Differential Revision: https://phabricator.kde.org/D14049
parent 3360de6f
......@@ -154,6 +154,7 @@ void KWrited::block_in()
QString msg = QString::fromLocal8Bit( buf.constData(), buf.size() );
msg.remove(QLatin1Char('\r'));
msg.remove(QLatin1Char('\a'));
msg = msg.trimmed();
KNotification *notification = new KNotification(QStringLiteral("NewMessage"), nullptr, KNotification::Persistent);
#if !defined(BUILD_AS_EXECUTABLE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment