tweak to allowing space before :; do not strip linefeed after end of summary.

This commit is contained in:
steve donovan 2011-08-21 18:50:58 +02:00
parent 1befcc505c
commit e680b44435
3 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ function markup.add_sections(F, txt)
end
local function handle_reference (ldoc, name)
local qname,label = utils.splitv(name,':')
local qname,label = utils.splitv(name,'%s*:')
if not qname then
qname = name
end

View File

@ -41,7 +41,7 @@ local function extract_tags (s)
if s:match '^%s*$' then return {} end
local preamble,tag_items = parse_tags(s)
local strip = tools.strip
local summary,description = preamble:match('^(.-[%.?])%s(.+)')
local summary,description = preamble:match('^(.-[%.?])(.+)')
if not summary then summary = preamble end -- and strip(description) ?
local tags = {summary=summary and strip(summary),description=description}
for _,item in ipairs(tag_items) do

View File

@ -20,7 +20,7 @@ Indented code blocks may also follow immediately.
----------
-- A function.
-- Can also use @{_TWO_}
-- Can also use @{_TWO_ :second function}
function _ONE_() end
-----------