calendar: remove trailing newlines of output

This commit is contained in:
Alphonse Mariya 2017-12-15 00:33:20 +01:00
parent b9d55e2853
commit 1b4f7d7722
1 changed files with 1 additions and 1 deletions

View File

@ -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