From a4761ed42f73c928f9ce573ed35de9a246a64eb9 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 27 Aug 2008 17:49:45 +0000 Subject: Fix some Luadoc glitches --- contrib/luadoc/lua/luadoc/doclet/html/function.lp | 2 +- contrib/luadoc/lua/luadoc/doclet/html/module.lp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/luadoc') 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%> -- cgit v1.2.3