summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lst.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-05-23 15:03:00 +0200
committerHans Hagen <pragma@wxs.nl>2010-05-23 15:03:00 +0200
commit882238ac1ea6d9563ea4e1add879f82ee8e6d9d0 (patch)
treedc208fdf4e21e347c25f7ba55b6e29a4fca013b1 /tex/context/base/strc-lst.lua
parent767a0960d500d3e291c9e93f6737375275da564e (diff)
downloadcontext-882238ac1ea6d9563ea4e1add879f82ee8e6d9d0.tar.gz
beta 2010.05.23 15:03
Diffstat (limited to 'tex/context/base/strc-lst.lua')
-rw-r--r--tex/context/base/strc-lst.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/tex/context/base/strc-lst.lua b/tex/context/base/strc-lst.lua
index 2ef789f2c..fefbe52ce 100644
--- a/tex/context/base/strc-lst.lua
+++ b/tex/context/base/strc-lst.lua
@@ -338,12 +338,14 @@ function lists.analyze(...)
lists.result = lists.filter(...)
end
-function lists.userdata(name,r,tag) -- to tex
- local str = lists.result[r]
- str = str and str.userdata
- str = str and str[tag]
- if str then
- texsprint(ctxcatcodes,str)
+function lists.userdata(name,r,tag) -- to tex (todo: xml)
+ local result = lists.result[r]
+ if result then
+ local userdata, metadata = result.userdata, result.metadata
+ local str = userdata and userdata[tag]
+ if str then
+ texsprint(metadata and metadata.catcodes or ctxcatcodes,str)
+ end
end
end