Handle unset text

This commit is contained in:
Fierelier 2024-08-20 13:58:07 +02:00
parent 2909fb8c7d
commit fe34ef0050

View File

@ -30,7 +30,9 @@ local function cmd(args)
hfield.attrs[i] = v
end
hfield.children[1] = {}
if field.children[1] ~= nil then
hfield.children[1].text = field.children[1].text
end
table.insert(hfields.children,hfield)
end