Issue #145: do not expand annotations if there's no previous item

This commit is contained in:
steve donovan 2014-01-06 15:03:09 +02:00
parent 60c6e79dd9
commit 04dc148df6
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ known_tags._annotation_tags = {
local acount = 1
function doc.expand_annotation_item (tags, last_item)
if tags.summary ~= '' then return false end
local item_name = last_item and last_item.tags.name or '?'
if tags.summary ~= '' or last_item == nil then return false end
local item_name = last_item.tags.name
for tag, value in pairs(tags) do
if known_tags._annotation_tags[tag] then
tags:add('class','annotation')