From 207ea33a4e031363b2e85b5158c922f868e55e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Thu, 27 May 2021 14:45:31 +0200 Subject: [PATCH] Fix wrong local --- luamml-convert.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/luamml-convert.lua b/luamml-convert.lua index 9f8979d..bea7eca 100644 --- a/luamml-convert.lua +++ b/luamml-convert.lua @@ -193,10 +193,11 @@ local function kernel_to_table(kernel, cur_style) return result, result end elseif id == sub_box_t then + local result if kernel.list.id == hlist_t then -- We directly give up for vlists - local result = to_text(kernel.list.head) + result = to_text(kernel.list.head) else - local result = {[0] = 'mi', {[0] = 'mglyph', ['tex:box'] = kernel.list, [':node'] = kernel}} + result = {[0] = 'mi', {[0] = 'mglyph', ['tex:box'] = kernel.list, [':node'] = kernel}} end if mathml_filter then return mathml_filter(result, result)