From 9363bfcbd23b4652af40bf56273ade6f395539f4 Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 2 Sep 2022 15:42:37 -0500 Subject: fix bug with textless tags --- marigold.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'marigold.lua') diff --git a/marigold.lua b/marigold.lua index c01eecd..a6223df 100644 --- a/marigold.lua +++ b/marigold.lua @@ -63,6 +63,11 @@ marigold.h = function(tag_type, content, tbl) content = '' end + if content == nil then + tbl = {} + content = '' + end + local tag = {} tag.tag = tag_type tag.content = content -- cgit v1.2.1