naughty: convert <br> tag to \n
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a146ad7e19
commit
2577f945d6
|
@ -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('<span font_desc="%s"><b>%s</b>%s</span>', font, title, text)
|
||||
textbox.text = string.format('<span font_desc="%s"><b>%s</b>%s</span>', font, title, text:gsub("<br.->", "\n"))
|
||||
textbox.valign = "middle"
|
||||
|
||||
-- create iconbox
|
||||
|
|
Loading…
Reference in New Issue