Fixed broken indentation for single-element subgroups in stdnse.format_output().

This commit is contained in:
ron 2010-01-13 21:03:20 +00:00
parent 577fc127f7
commit e47175b4b8

View file

@ -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