diff --git a/sources/awesome-widget/plugin/awkeys.cpp b/sources/awesome-widget/plugin/awkeys.cpp index af9b52d..9ff94a9 100644 --- a/sources/awesome-widget/plugin/awkeys.cpp +++ b/sources/awesome-widget/plugin/awkeys.cpp @@ -340,7 +340,8 @@ QString AWKeys::parsePattern(QString _pattern) const // main keys for (auto &key : m_foundKeys) - _pattern.replace(QString("$%1").arg(key), m_aggregator->formatter(m_values[key], key, true)); + _pattern.replace(QString("$%1").arg(key), + m_aggregator->formatter(m_values[key], key, true)); // bars for (auto &bar : m_foundBars) { diff --git a/sources/awesome-widget/plugin/awkeysaggregator.cpp b/sources/awesome-widget/plugin/awkeysaggregator.cpp index de7c339..669fc47 100644 --- a/sources/awesome-widget/plugin/awkeysaggregator.cpp +++ b/sources/awesome-widget/plugin/awkeysaggregator.cpp @@ -55,7 +55,8 @@ void AWKeysAggregator::initFormatters() } -QString AWKeysAggregator::formatter(const QVariant &_data, const QString &_key, bool replaceSpace) const +QString AWKeysAggregator::formatter(const QVariant &_data, const QString &_key, + bool replaceSpace) const { qCDebug(LOG_AW) << "Data" << _data << "for key" << _key; diff --git a/sources/qml/AWExtensions.qml b/sources/qml/AWExtensions.qml index d048ac8..c83fca5 100644 --- a/sources/qml/AWExtensions.qml +++ b/sources/qml/AWExtensions.qml @@ -92,7 +92,7 @@ Row { } onShowMessage: { - compiledText.text = message.replace(" ", " ") + compiledText.text = message.split(" ").join(" ") // replaceAll lols compiledText.open() } } diff --git a/sources/qml/AWTagSelector.qml b/sources/qml/AWTagSelector.qml index 628d6e3..52b6571 100644 --- a/sources/qml/AWTagSelector.qml +++ b/sources/qml/AWTagSelector.qml @@ -68,7 +68,7 @@ Row { // generate message var message = i18n("Tag: %1", tags.currentText) message += "
" - message += i18n("Value: %1", backend.valueByKey(tags.currentText)) + message += i18n("Value: %1", backend.valueByKey(tags.currentText).split(" ").join(" ")) message += "
" message += i18n("Info: %1", backend.infoByKey(tags.currentText)) notifyBackend.sendNotification("tag", message)