Fixed Issue 301

This commit is contained in:
eruber 2018-07-06 15:20:54 -07:00
parent f91c3182cf
commit e677dc1121
1 changed files with 7 additions and 5 deletions

View File

@ -164,11 +164,13 @@ function html.generate_output(ldoc, args, project)
-- these references are never from the index...?
function ldoc.source_ref (fun)
local modname = fun.module.name
local path, ext
path, ext = tools.split_dotted_name(fun.module.file.filename)
local pack,name = tools.split_dotted_name(modname)
if not pack then
name = modname
end
return (ldoc.single and "" or "../").."source/"..name..'.lua.html#'..fun.lineno
return (ldoc.single and "" or "../").."source/"..name..'.'..ext..'.html#'..fun.lineno
end
function ldoc.use_li(ls)