Skip to content

Commit

Permalink
Use default MD template if none specified, fixes #256
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 29, 2020
1 parent bb55647 commit a3bb407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldoc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ if args.ext == 'md' then
if #module_list ~= 1 then
quit("can currently only generate Markdown output from one module only")
end
if ldoc.template == '!' then
if not ldoc.template or ldoc.template == '!' then
ldoc.template = '!md'
end
args.output = module_list[1].name
Expand Down

0 comments on commit a3bb407

Please sign in to comment.