summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lxml-tab.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-01-17 19:15:07 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-01-17 19:15:07 +0100
commite200230205ec1297f8d3ade3d491585f85d87fff (patch)
tree3c1473953256ea8a7144846ff2a55c6ff45e801e /tex/context/base/mkiv/lxml-tab.lua
parentb0a00d3509297a53ffb5618cee122e1b1d995f42 (diff)
downloadcontext-e200230205ec1297f8d3ade3d491585f85d87fff.tar.gz
2016-01-17 18:52:00
Diffstat (limited to 'tex/context/base/mkiv/lxml-tab.lua')
-rw-r--r--tex/context/base/mkiv/lxml-tab.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/tex/context/base/mkiv/lxml-tab.lua b/tex/context/base/mkiv/lxml-tab.lua
index 510ba1bd4..c5480f746 100644
--- a/tex/context/base/mkiv/lxml-tab.lua
+++ b/tex/context/base/mkiv/lxml-tab.lua
@@ -528,7 +528,7 @@ local function handle_any_entity(str)
end
else
if type(resolve) == "function" then
- a = resolve(str) or entities[str]
+ a = resolve(str,entities) or entities[str]
else
a = entities[str]
end
@@ -1146,14 +1146,16 @@ local function serialize(e,handlers,...)
end
local function xserialize(e,handlers)
- local functions = handlers.functions
- local etg = e.tg
- if etg then
- (functions[etg] or functions["@el@"])(e,handlers)
- -- elseif type(e) == "string" then
- -- functions["@tx@"](e,handlers)
- else
- functions["@dc@"](e,handlers)
+ if e then
+ local functions = handlers.functions
+ local etg = e.tg
+ if etg then
+ (functions[etg] or functions["@el@"])(e,handlers)
+ -- elseif type(e) == "string" then
+ -- functions["@tx@"](e,handlers)
+ else
+ functions["@dc@"](e,handlers)
+ end
end
end