mirror of
https://github.com/nmap/nmap.git
synced 2026-11-20 06:30:40 +00:00
Collapse whitespace to align more closely with HTML rendering
This commit is contained in:
parent
8b515f26b8
commit
987df0afab
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue