From 1b4f7d7722a5ff0e38e0010f764bd8974e3cf187 Mon Sep 17 00:00:00 2001 From: Alphonse Mariya Date: Fri, 15 Dec 2017 00:33:20 +0100 Subject: [PATCH] calendar: remove trailing newlines of output --- widget/calendar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/calendar.lua b/widget/calendar.lua index 2dda890..4f927b3 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -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 -- 2.39.5