bump version to 1.3.8 in usage; ignore empty docstrings (Dirk bug)

This commit is contained in:
steve donovan 2013-03-26 11:53:42 +02:00
parent 0706681e72
commit d176dedcfc
2 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,7 @@
--
-- C/C++ support for Lua extensions is provided.
--
-- Available from LuaRocks as 'ldoc' and as a [Zip file](http://stevedonovan.github.com/files/ldoc-1.3.0.zip)
-- Available from LuaRocks as 'ldoc' and as a [Zip file](http://stevedonovan.github.com/files/ldoc-1.3.8.zip)
--
-- [Github Page](https://github.com/stevedonovan/ldoc)
--
@ -35,7 +35,7 @@ app.require_here()
--- @usage
local usage = [[
ldoc, a documentation generator for Lua, vs 1.3.1
ldoc, a documentation generator for Lua, vs 1.3.8
-d,--dir (default docs) output directory
-o,--output (default 'index') output name
-v,--verbose verbose

View File

@ -245,7 +245,11 @@ local function parse_file(fname, lang, package, args)
local item_follows, tags, is_local, case
if ldoc_comment then
comment = table.concat(comment)
if comment:match '^%s*$' then
ldoc_comment = nil
end
end
if ldoc_comment then
if first_comment then
first_comment = false
else