X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/de72508c786f2e659ed34d2ec329f946965d7696..1d2f4a102ed4fe4c536a76d03b91c19001f48ec6:/widget/calendar.lua?ds=sidebyside diff --git a/widget/calendar.lua b/widget/calendar.lua index d289ebb..4f927b3 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, Luke Bonham + --]] 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