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 64becbc047
commit f3509f745a
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