mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-26 01:57:14 +08:00
fixed escaping '&' in mpd song widget
This commit is contained in:
parent
3eedd4972f
commit
b315de9f77
1 changed files with 2 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue