escape ampersand, fix #136
This commit is contained in:
parent
5a8113dfae
commit
e9131c266b
|
@ -50,11 +50,12 @@ local function worker(args)
|
|||
end
|
||||
|
||||
local update_widget_text = function(widget, stdout, _, _, _)
|
||||
local escaped = string.gsub(stdout, "&", '&')
|
||||
if string.find(stdout, 'Error: Spotify is not running.') ~= nil then
|
||||
widget:set_text('')
|
||||
widget:set_visible(false)
|
||||
else
|
||||
widget:set_text(stdout)
|
||||
widget:set_text(escaped)
|
||||
widget:set_visible(true)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue