don't strip multiline tag values. Allows multiline @usage blocks to work nicely

This commit is contained in:
steve donovan 2013-03-05 17:00:33 +02:00
parent 7ceb7cc00b
commit 357ee3978d
1 changed files with 4 additions and 1 deletions

View File

@ -114,7 +114,10 @@ local function extract_tags (s,args)
local tags = Tags.new{summary=summary and strip(summary) or '',description=description or ''}
for _,item in ipairs(tag_items) do
local tag, value, modifiers = Item.check_tag(tags,unpack(item))
-- treat multiline values more gently..
if not value:match '\n[^\n]+\n' then
value = strip(value)
end
if modifiers then value = { value, modifiers=modifiers } end
local old_value = tags[tag]