Handle unset text
This commit is contained in:
parent
2909fb8c7d
commit
fe34ef0050
@ -30,7 +30,9 @@ local function cmd(args)
|
|||||||
hfield.attrs[i] = v
|
hfield.attrs[i] = v
|
||||||
end
|
end
|
||||||
hfield.children[1] = {}
|
hfield.children[1] = {}
|
||||||
|
if field.children[1] ~= nil then
|
||||||
hfield.children[1].text = field.children[1].text
|
hfield.children[1].text = field.children[1].text
|
||||||
|
end
|
||||||
table.insert(hfields.children,hfield)
|
table.insert(hfields.children,hfield)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user