diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/strc-tag.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/strc-tag.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/strc-tag.lua b/Master/texmf-dist/tex/context/base/mkiv/strc-tag.lua index 88e0f108dc9..83ff515e30c 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/strc-tag.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/strc-tag.lua @@ -104,6 +104,7 @@ local properties = allocate { -- todo: more "record = true" to improve forma lines = { pdf = "Code", nature = "display" }, line = { pdf = "Code", nature = "mixed" }, + linenumber = { pdf = "Span", nature = "inline" }, synonym = { pdf = "Span", nature = "inline" }, sorting = { pdf = "Span", nature = "inline" }, @@ -265,8 +266,8 @@ end function structures.atlocation(str) local specification = taglist[texgetattribute(a_tagged)] if specification then + local list = specification.taglist if list then - local taglist = specification.taglist local pattern = patterns[str] for i=#list,1,-1 do if find(list[i],pattern) then @@ -362,7 +363,9 @@ function tags.start(tag,specification) metadata = nil end local userdata = specification.userdata - if userdata ~= "" and type(userdata) == "string" then + if userdata == "" then + specification.userdata = nil + elseif type(userdata) == "string" then specification.userdata = settings_to_hash(userdata) end local detail = specification.detail |