diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 0146176e..c2bf03ff 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -326,7 +326,7 @@ function notify(args) local textbox = capi.widget({ type = "textbox", align = "flex" }) textbox:buttons(util.table.join(button({ }, 1, run), button({ }, 3, die))) layout.margins[textbox] = { right = margin, left = margin, bottom = margin, top = margin } - textbox.text = string.format('%s%s', font, title, text) + textbox.text = string.format('%s%s', font, title, text:gsub("", "\n")) textbox.valign = "middle" -- create iconbox