From: Steven Barth Date: Wed, 27 Aug 2008 17:49:45 +0000 (+0000) Subject: Fix some Luadoc glitches X-Git-Tag: 0.8.0~279 X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=a4761ed42f73c928f9ce573ed35de9a246a64eb9;p=project%2Fluci.git Fix some Luadoc glitches --- diff --git a/contrib/luadoc/lua/luadoc/doclet/html/function.lp b/contrib/luadoc/lua/luadoc/doclet/html/function.lp index afc645b07..a870ff8bb 100644 --- a/contrib/luadoc/lua/luadoc/doclet/html/function.lp +++ b/contrib/luadoc/lua/luadoc/doclet/html/function.lp @@ -8,7 +8,7 @@ else end %> -
<%=func.private and "local " or ""%><%=(oop and func.name:gsub("%.",":") or func.name:gsub(".+%.",""))%> (<%=table.concat(func.param, ", ")%>)
+
<%=func.private and "local " or ""%><%=(oop and func.name:gsub("%.",":") or func.name:gsub(".+%.",""))%> (<%=table.concat(func.param or {}, ", ")%>)
<%=func.description or ""%> diff --git a/contrib/luadoc/lua/luadoc/doclet/html/module.lp b/contrib/luadoc/lua/luadoc/doclet/html/module.lp index 11e2f118b..daa708628 100644 --- a/contrib/luadoc/lua/luadoc/doclet/html/module.lp +++ b/contrib/luadoc/lua/luadoc/doclet/html/module.lp @@ -64,7 +64,7 @@ <%for _, func_name in ipairs(module_doc.functions) do local func_data = module_doc.functions[func_name]%> - <%=func_data.private and "local " or ""%><%=(oop and func_name:gsub("%.",":") or func_name:gsub(".+%.",""))%> (<%=table.concat(module_doc.functions[func_name].param, ", ")%>) + <%=func_data.private and "local " or ""%><%=(oop and func_name:gsub("%.",":") or func_name:gsub(".+%.",""))%> (<%=table.concat(module_doc.functions[func_name].param or {}, ", ")%>) <%=module_doc.functions[func_name].summary%> <%end%>