Skip to content

Commit

Permalink
module at-references now working! No-contents warning fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedonovan committed Mar 23, 2013
1 parent a8ea31b commit a7b01ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ldoc/html.lua
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ldoc/parse.lua
Expand Up @@ -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
Expand Down

0 comments on commit a7b01ab

Please sign in to comment.