From e47175b4b82869f6dd5d7b2042cafe43f52c18be Mon Sep 17 00:00:00 2001 From: ron Date: Wed, 13 Jan 2010 21:03:20 +0000 Subject: [PATCH] Fixed broken indentation for single-element subgroups in stdnse.format_output(). --- nselib/stdnse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/stdnse.lua b/nselib/stdnse.lua index 9b6ec4b48..29f0aabaa 100644 --- a/nselib/stdnse.lua +++ b/nselib/stdnse.lua @@ -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