mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fixed broken indentation for single-element subgroups in stdnse.format_output().
This commit is contained in:
parent
577fc127f7
commit
e47175b4b8
1 changed files with 1 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ function format_output(status, data, indent)
|
|||
end
|
||||
|
||||
-- Return a single line of output as-is
|
||||
if(#data == 1 and not(data['name']) and not(data['warning'])) then
|
||||
if(indent == nil and #data == 1 and not(data['name']) and not(data['warning'])) then
|
||||
return data[1]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue