Changed lovebird.print()'d newlines to be displayed correctly

This commit is contained in:
rxi 2014-04-14 21:41:19 +01:00
parent 866cff673d
commit 148d2c46cd

View File

@ -478,7 +478,7 @@ function lovebird.print(...)
local function doline(line)
local str = line.str
if not lovebird.allowhtml then
str = lovebird.htmlescape(line.str)
str = lovebird.htmlescape(line.str):gsub("\n", "<br>")
end
if line.count > 1 then
str = '<span class="repeatcount">' .. line.count .. '</span> ' .. str