adapt to the new summary layout

develop
myk002 2022-08-26 16:51:42 -07:00
parent 65dd62a96e
commit 4a1a322cd7
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 2 deletions

@ -191,11 +191,11 @@ local function update_entry(entry, iterator, opts)
_,_,tags = line:trim():find('[*]*Tags:[*]* *(.*)') _,_,tags = line:trim():find('[*]*Tags:[*]* *(.*)')
in_tags, tags_found = true, true in_tags, tags_found = true, true
elseif not short_help_found and elseif not short_help_found and
line:find('^%w') and not line:find('^%w+:') then line:find('^%s*%w') and not line:find('^%w+:') then
if in_short_help then if in_short_help then
entry.short_help = entry.short_help .. ' ' .. line entry.short_help = entry.short_help .. ' ' .. line
else else
entry.short_help = line entry.short_help = line:trim()
end end
local sentence_end = entry.short_help:find('.', 1, true) local sentence_end = entry.short_help:find('.', 1, true)
if sentence_end then if sentence_end then