diff --git a/ldoc/html.lua b/ldoc/html.lua index 1cd3ddd2..f584f807 100644 --- a/ldoc/html.lua +++ b/ldoc/html.lua @@ -73,6 +73,8 @@ function html.generate_output(ldoc, args, project) function ldoc.href(see) if see.href then -- explict reference, e.g. to Lua manual return see.href + elseif doc.Module:class_of(see) then + return ldoc.ref_to_module(see) else return ldoc.ref_to_module(see.mod)..'#'..see.name end diff --git a/ldoc/parse.lua b/ldoc/parse.lua index dded82ce..721e75b4 100644 --- a/ldoc/parse.lua +++ b/ldoc/parse.lua @@ -313,7 +313,7 @@ local function parse_file(fname, lang, package, args) add_module(tags,module_found,old_style) tags = nil if not t then - F:warning(fname,' contains no items\n','warning',1) + F:warning('contains no items','warning',1) break; end -- run out of file! -- if we did bump into a doc comment, then we can continue parsing it