fixed escaping '&' in mpd song widget

This commit is contained in:
Elena 2019-01-12 03:17:50 +02:00
parent 3eedd4972f
commit b315de9f77

View file

@ -77,8 +77,8 @@ local function update_widget()
end
-- Escape &'s
title = title:gsub("%&", "%&")
artist = artist:gsub("%&", "%&")
title = string.gsub(title, "&", "&")
artist = string.gsub(artist, "&", "&")
-- naughty.notify({text = artist .. " - " .. title})
mpd_title.markup =