Fix extra newline with legacy naughty layout

Fixes 9df77e5c76 (commitcomment-32354198).
This commit is contained in:
Daniel Hahler 2019-02-18 08:34:59 +01:00
parent 052f6fb89d
commit 8072d717cf
1 changed files with 2 additions and 3 deletions

View File

@ -131,9 +131,8 @@ local escape_subs = { ['<'] = "&lt;", ['>'] = "&gt;", ['&'] = "&amp;" }
-- Cache the markup
local function set_escaped_text(self)
local text, title = self.message or "", self.title or ""
if title then title = title .. "\n" else title = "" end
local text = self.message or ""
local title = self.title and self.title .. "\n" or ""
local textbox = self.textbox