1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 15:09:02 +00:00

Change " \n" to just "\n" where appropriate in NSE. Leading newlines are

no longer removed from script output.
This commit is contained in:
david
2010-09-30 05:03:39 +00:00
parent fe55182068
commit e7fc9c4c5f
10 changed files with 13 additions and 13 deletions

View File

@@ -213,7 +213,7 @@ function action(host,port)
-- catch any softerrors
if searchResEntries.resultCode ~= 0 then
local output = stdnse.format_output(true, result )
output = output .. string.format(" \n\n\n=========== %s ===========", searchResEntries.errorMessage )
output = output .. string.format("\n\n\n=========== %s ===========", searchResEntries.errorMessage )
return output
end
@@ -233,7 +233,7 @@ function action(host,port)
local output = stdnse.format_output(true, result )
if ( maxObjects ~= -1 and objCount == maxObjects ) then
output = output .. (" \n\nResult limited to %d objects (see ldap.maxobjects)"):format(maxObjects)
output = output .. ("\n\nResult limited to %d objects (see ldap.maxobjects)"):format(maxObjects)
end
return output