mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 22:05:48 +00:00
do not replace space to nbsp in some cases (#143)
This commit is contained in:
@ -55,7 +55,7 @@ void AWKeysAggregator::initFormatters()
|
||||
}
|
||||
|
||||
|
||||
QString AWKeysAggregator::formatter(const QVariant &_data, const QString &_key) const
|
||||
QString AWKeysAggregator::formatter(const QVariant &_data, const QString &_key, bool replaceSpace) const
|
||||
{
|
||||
qCDebug(LOG_AW) << "Data" << _data << "for key" << _key;
|
||||
|
||||
@ -162,7 +162,8 @@ QString AWKeysAggregator::formatter(const QVariant &_data, const QString &_key)
|
||||
}
|
||||
|
||||
// replace spaces to non-breakable ones
|
||||
if (!_key.startsWith("custom") && (!_key.startsWith("weather")))
|
||||
replaceSpace &= (!_key.startsWith("custom") && (!_key.startsWith("weather")));
|
||||
if (replaceSpace)
|
||||
output.replace(" ", " ");
|
||||
|
||||
return output;
|
||||
|
Reference in New Issue
Block a user