mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 11:02:19 +00:00
Changed lovebird.print()'d newlines to be displayed correctly
This commit is contained in:
@@ -478,7 +478,7 @@ function lovebird.print(...)
|
|||||||
local function doline(line)
|
local function doline(line)
|
||||||
local str = line.str
|
local str = line.str
|
||||||
if not lovebird.allowhtml then
|
if not lovebird.allowhtml then
|
||||||
str = lovebird.htmlescape(line.str)
|
str = lovebird.htmlescape(line.str):gsub("\n", "<br>")
|
||||||
end
|
end
|
||||||
if line.count > 1 then
|
if line.count > 1 then
|
||||||
str = '<span class="repeatcount">' .. line.count .. '</span> ' .. str
|
str = '<span class="repeatcount">' .. line.count .. '</span> ' .. str
|
||||||
|
Reference in New Issue
Block a user