summaryrefslogtreecommitdiff
path: root/tex/context/base/core-job.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2009-10-16 16:13:00 +0200
committerHans Hagen <pragma@wxs.nl>2009-10-16 16:13:00 +0200
commit7f9b179ad5be5000f67192f283d20e7120402bd9 (patch)
tree18f83a8cbfe7fed1c2a6939fb4b2cf10473abbbe /tex/context/base/core-job.lua
parentc878054f6360d50885dbdab96643a8f3ac61c46c (diff)
downloadcontext-7f9b179ad5be5000f67192f283d20e7120402bd9.tar.gz
beta 2009.10.16 16:13
Diffstat (limited to 'tex/context/base/core-job.lua')
-rw-r--r--tex/context/base/core-job.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/core-job.lua b/tex/context/base/core-job.lua
index af2c71551..8f5517df3 100644
--- a/tex/context/base/core-job.lua
+++ b/tex/context/base/core-job.lua
@@ -89,11 +89,10 @@ end
local function convertexamodes(str)
local x = xml.convert(str)
- for e, d, k in xml.elements(x,"exa:variable") do
- local dk = d[k]
- local label = dk.at and dk.at.label
+ for e in xml.collected(x,"exa:variable") do
+ local label = e.at and e.at.label
if label and label ~= "" then
- local data = xml.content(dk) or ""
+ local data = xml.content(e) or ""
local mode = label:match("^mode:(.+)$")
if mode then
texsprint(ctxcatcodes,format("\\enablemode[%s:%s]",mode,data))