doc: Fix a regression from a recent commit.

There was an off-by-one in the substring for the parameter names.
This commit is contained in:
Emmanuel Lepage Vallee 2019-10-05 17:20:29 -04:00
parent dd69936bed
commit 585e321578
1 changed files with 2 additions and 1 deletions

View File

@ -180,6 +180,7 @@ end
local named_args = {
[ "(args)" ] = true,
[ "([args])" ] = true,
[ "([args=nil])" ] = true,
[ "([args={}])" ] = true
}
@ -193,7 +194,7 @@ local function wrap_args(item)
return "<span class='function_named_args'><b>{</b>[args]<b>}</b></span>"
end
local new_args = item.args:sub(2, item.args:len()-2)
local new_args = item.args:sub(2, item.args:len()-1)
return "<span class='function_args'> <b>(</b>"..new_args.."<b>)</b></span>"
end