diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-04-11 10:29:07 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-04-11 10:29:07 +0200 |
commit | 57a61e4673116076f5bbff7600e6dad376af9173 (patch) | |
tree | 8261af49f1576dcfea0f152300d22e1a64ae907f /tex/context/base/mkiv/lxml-tex.lua | |
parent | 274c32699e7826f7590248f91aa1bfbf5b07c8ee (diff) | |
download | context-57a61e4673116076f5bbff7600e6dad376af9173.tar.gz |
2016-04-10 23:57:00
Diffstat (limited to 'tex/context/base/mkiv/lxml-tex.lua')
-rw-r--r-- | tex/context/base/mkiv/lxml-tex.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/lxml-tex.lua b/tex/context/base/mkiv/lxml-tex.lua index 7a0ef3e64..3a49ea3d2 100644 --- a/tex/context/base/mkiv/lxml-tex.lua +++ b/tex/context/base/mkiv/lxml-tex.lua @@ -1712,15 +1712,15 @@ end function lxml.context(id,pattern) -- the content, untouched by commands if pattern then - local collected = xmlapplylpath(getid(id),pattern) or getid(id) + local collected = xmlapplylpath(getid(id),pattern) if collected and #collected > 0 then - contextsprint(ctxcatcodes,collected[1].dt) + ctx_text(collected[1].dt[1]) end else local collected = getid(id) if collected then local dt = collected.dt - if #dt > 0 then + if dt and #dt > 0 then ctx_text(dt[1]) end end |