Forgot interction of metatable
This commit is contained in:
parent
c9904b3bc5
commit
1961c2445c
@ -55,11 +55,11 @@ local function write_elem(tree, indent)
|
|||||||
end end
|
end end
|
||||||
table.sort(attrs)
|
table.sort(attrs)
|
||||||
local attr_name
|
local attr_name
|
||||||
tex.sprint(struct_begin, '{tag=', tree[0], '/mathml')
|
if i == 0 then
|
||||||
if i ~= 0 then
|
tex.sprint(struct_begin, '{tag=', tree[0], '/mathml}')
|
||||||
tex.sprint(',attribute=', attributes[table.concat(attrs)])
|
else
|
||||||
|
tex.sprint(struct_begin, '{tag=', tree[0], '/mathml,attribute=', attributes[table.concat(attrs)], '}')
|
||||||
end
|
end
|
||||||
tex.sprint'}'
|
|
||||||
for j = 1, i do attrs[j] = nil end
|
for j = 1, i do attrs[j] = nil end
|
||||||
|
|
||||||
if tree[':node'] then
|
if tree[':node'] then
|
||||||
|
Loading…
Reference in New Issue
Block a user