summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-tag.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-06-10 10:02:10 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-06-10 10:02:10 +0200
commit0226b596b39ea5d055dc37ea0609b67b64fe3d75 (patch)
treeb8e19522cb8e3a0683da0db73b23e40b5d6a9437 /tex/context/base/mkiv/strc-tag.lua
parent0aa14799b67298a50dd2c31c249622915e103994 (diff)
downloadcontext-0226b596b39ea5d055dc37ea0609b67b64fe3d75.tar.gz
2020-06-09 18:55:00
Diffstat (limited to 'tex/context/base/mkiv/strc-tag.lua')
-rw-r--r--tex/context/base/mkiv/strc-tag.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/strc-tag.lua b/tex/context/base/mkiv/strc-tag.lua
index 88e0f108d..694f7bdf0 100644
--- a/tex/context/base/mkiv/strc-tag.lua
+++ b/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" },
@@ -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