X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1b12fd2319e1cd02706fd3a7ec0f0203ca2782d2..af3427c7dfcf991c56a099ac1450e54db867ae51:/widget/calendar.lua diff --git a/widget/calendar.lua b/widget/calendar.lua index 2dda890..84b025d 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -1,7 +1,7 @@ --[[ Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham + * (c) 2013, Luca CPZ --]] @@ -62,7 +62,7 @@ function calendar.show(t_out, inc_offset, scr) helpers.async(f, function(ws) local fg, bg = calendar.notification_preset.fg, calendar.notification_preset.bg calendar.notification_preset.text = ws:gsub("%c%[%d+[m]?%s?%d+%c%[%d+[m]?", - markup.bold(markup.color(bg, fg, os.date("%e")))):gsub("\n*$", "") + markup.bold(markup.color(bg, fg, os.date("%e")))):gsub("[\n%s]*$", "") local widget_focused = true