diff options
Diffstat (limited to 'tex/context/base/core-job.lua')
-rw-r--r-- | tex/context/base/core-job.lua | 7 |
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)) |