X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/de72508c786f2e659ed34d2ec329f946965d7696..3acf8f90990ec2496fdcb5e1099ee20ad45068e4:/widget/calendar.lua?ds=inline diff --git a/widget/calendar.lua b/widget/calendar.lua index d289ebb..84b025d 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luca CPZ + --]] local helpers = require("lain.helpers") @@ -63,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