finally fixed issue #32 (sorry Eric). Can now dump non-modules like scripts

This commit is contained in:
Steve Donovan 2013-07-23 10:40:07 +02:00
parent 16981eeb3e
commit eb00a499b2
2 changed files with 3 additions and 3 deletions

View File

@ -604,11 +604,11 @@ if args.style == '!' or args.template == '!' then
utils.writefile(path.join(tmpdir,name),require('ldoc.html.'..name:gsub('%.','_')))
end
if args.style == '!' then
tmpwrite(ldoc.templ)
tmpwrite(ldoc.css)
args.style = tmpdir
end
if args.template == '!' then
tmpwrite(ldoc.css)
tmpwrite(ldoc.templ)
args.template = tmpdir
end
end

View File

@ -917,7 +917,7 @@ local function dump_tags (tags)
end
function Module:dump(verbose)
if self.type ~= 'module' then return end
if not doc.project_level(self.type) then return end
print '----'
print(self.type..':',self.name,self.summary)
if self.description then print(self.description) end