summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lst.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-02-16 09:55:00 +0100
committerHans Hagen <pragma@wxs.nl>2012-02-16 09:55:00 +0100
commitd727c799380434800e74e7f7c2c8b7dd264bf6c1 (patch)
tree0d3ad06b3c42a41acbdb578245660d293d292b0a /tex/context/base/strc-lst.lua
parenta35b193e7e4396d213bc1283f94ba41786fd87fe (diff)
downloadcontext-d727c799380434800e74e7f7c2c8b7dd264bf6c1.tar.gz
beta 2012.02.16 09:55
Diffstat (limited to 'tex/context/base/strc-lst.lua')
-rw-r--r--tex/context/base/strc-lst.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/strc-lst.lua b/tex/context/base/strc-lst.lua
index 734ca3f7e..25d046f4f 100644
--- a/tex/context/base/strc-lst.lua
+++ b/tex/context/base/strc-lst.lua
@@ -116,6 +116,10 @@ end
job.register('structures.lists.collected', tobesaved, initializer)
function lists.addto(t)
+ local u = t.userdata
+ if u and type(u) == "string" then
+ t.userdata = helpers.touserdata(u) -- nicer at the tex end
+ end
local m = t.metadata
local r = t.references
local i = (r and r.internal) or 0 -- brrr
@@ -131,10 +135,6 @@ function lists.addto(t)
if setcomponent then
setcomponent(t) -- might move to the tex end
end
- local u = t.userdata
- if u and type(u) == "string" then
- t.userdata = helpers.touserdata(u) -- nicer at the tex end
- end
return p
end