fixed escaping '&' in mpd song widget

Former-commit-id: b315de9f77
Former-commit-id: e30834b76dd77f678fda7f11c706a57087126b0e
Former-commit-id: ece7d72d43e0a20495b093d7fae563c6bab71ae2
Former-commit-id: a08c6d16eb1ba450cd74cbc1b1ed3594632f0ccb
This commit is contained in:
Elena 2019-01-12 03:17:50 +02:00
parent fe327abd8d
commit e035faea53

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 =