naughty: convert <br> tag to \n

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-11-06 12:45:46 +01:00
parent a146ad7e19
commit 2577f945d6
1 changed files with 1 additions and 1 deletions

View File

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