summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luaxml/luaxml-mod-handler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaxml/luaxml-mod-handler.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luaxml/luaxml-mod-handler.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaxml/luaxml-mod-handler.lua b/Master/texmf-dist/tex/luatex/luaxml/luaxml-mod-handler.lua
index 1225b913140..bc34e70c373 100644
--- a/Master/texmf-dist/tex/luatex/luaxml/luaxml-mod-handler.lua
+++ b/Master/texmf-dist/tex/luatex/luaxml/luaxml-mod-handler.lua
@@ -286,10 +286,13 @@ local function domHandler()
end
end
obj.text = function(self,t)
- local node = { _type = "TEXT",
- _parent = self.current,
- _text = decode(t) }
- table.insert(self.current._children,node)
+ local text = decode(t)
+ local node = {
+ _type = "TEXT",
+ _parent = self.current,
+ _text = text
+ }
+ table.insert(self.current._children,node)
end
obj.comment = function(self,t)
if self.options.commentNode then