Collapse whitespace to align more closely with HTML rendering

This commit is contained in:
nnposter 2026-11-09 01:53:31 +00:00
parent 8b515f26b8
commit 987df0afab

View file

@ -58,7 +58,7 @@ action = function(host, port)
local display_title = title
if display_title and display_title ~= "" then
display_title = string.gsub(display_title , "[\n\r\t]", "")
display_title = string.gsub(display_title, "%s+", " ")
if #display_title > 65 then
display_title = string.sub(display_title, 1, 62) .. "..."
end