summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-09-02 15:42:37 -0500
committersanine <sanine.not@pm.me>2022-09-02 15:42:37 -0500
commit9363bfcbd23b4652af40bf56273ade6f395539f4 (patch)
treeedbdae3e4e4e2da3bf03a5dab4acf77d1e9f6479
parente5139dc0a8b2a57f9ce1ee450825b98673afba97 (diff)
fix bug with textless tags
-rw-r--r--marigold.lua5
1 files changed, 5 insertions, 0 deletions
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