diff options
Diffstat (limited to 'tex/context/base/strc-tag.lua')
-rw-r--r-- | tex/context/base/strc-tag.lua | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tex/context/base/strc-tag.lua b/tex/context/base/strc-tag.lua index a0c1d1d32..78b807487 100644 --- a/tex/context/base/strc-tag.lua +++ b/tex/context/base/strc-tag.lua @@ -242,13 +242,21 @@ function tags.start(tag,specification) codeinjections.enabletags() enabled = true end - labels[tag] = label ~= "" and label or tag - local fulltag + -- +--~ labels[tag] = label ~= "" and label or tag +--~ local fulltag +--~ if detail and detail ~= "" then +--~ fulltag = tag .. ":" .. detail +--~ else +--~ fulltag = tag +--~ end + -- + local fulltag = label ~= "" and label or tag + labels[tag] = fulltag if detail and detail ~= "" then - fulltag = tag .. ":" .. detail - else - fulltag = tag + fulltag = fulltag .. ":" .. detail end + -- local t = #taglist + 1 local n = (ids[fulltag] or 0) + 1 ids[fulltag] = n |