holo: &.-; fix

This commit is contained in:
luke bonham 2013-09-16 13:48:57 +02:00
parent 5108ca3bd5
commit df4ecc92f6
1 changed files with 4 additions and 2 deletions

View File

@ -172,11 +172,13 @@ play_pause_icon:set_image(beautiful.play)
mpdwidget = lain.widgets.mpd({
settings = function ()
if mpd_now.state == "play" then
mpd_now.artist = mpd_now.artist:upper():gsub("&.-;", string.lower)
mpd_now.title = mpd_now.title:upper():gsub("&.-;", string.lower)
widget:set_markup(markup.font("Tamsyn 4", " ")
.. markup.font("Tamsyn 8",
mpd_now.artist:upper():gsub("&", "&")
mpd_now.artist
.. " - " ..
mpd_now.title:upper():gsub("&", "&")
mpd_now.title
.. markup.font("Tamsyn 10", " ")))
play_pause_icon:set_image(beautiful.pause)
elseif mpd_now.state == "pause" then