From 1961c2445c0ad981de2ff725d989c81af4b37214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Thu, 27 May 2021 07:35:12 +0200 Subject: [PATCH] Forgot interction of metatable --- luamml-structelemwriter.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luamml-structelemwriter.lua b/luamml-structelemwriter.lua index 6cc00a6..56f99d3 100644 --- a/luamml-structelemwriter.lua +++ b/luamml-structelemwriter.lua @@ -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