tweak to allowing space before :; do not strip linefeed after end of summary.
This commit is contained in:
parent
1befcc505c
commit
e680b44435
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
-----------
|
||||
|
|
Loading…
Reference in New Issue