Forgot interction of metatable

This commit is contained in:
Marcel Fabian Krüger 2021-05-27 07:35:12 +02:00
parent c9904b3bc5
commit 1961c2445c

View File

@ -55,11 +55,11 @@ local function write_elem(tree, indent)
end end
table.sort(attrs)
local attr_name
tex.sprint(struct_begin, '{tag=', tree[0], '/mathml')
if i ~= 0 then
tex.sprint(',attribute=', attributes[table.concat(attrs)])
if i == 0 then
tex.sprint(struct_begin, '{tag=', tree[0], '/mathml}')
else
tex.sprint(struct_begin, '{tag=', tree[0], '/mathml,attribute=', attributes[table.concat(attrs)], '}')
end
tex.sprint'}'
for j = 1, i do attrs[j] = nil end
if tree[':node'] then