From 1d7af97d4cb261d5a0b82f6f0ccf7e788ff5a54a Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 9 Sep 2018 00:33:03 +0200 Subject: cal: tag root object as such --- cal.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cal.lua') diff --git a/cal.lua b/cal.lua index 0cd97b5..83bcea0 100644 --- a/cal.lua +++ b/cal.lua @@ -327,7 +327,11 @@ local calendar_of_lines do if curname == "begin" then if stringlower (curvalue) == "vcalendar" then - acc = { value = { } } + --- this is a root object + acc = + { value = { } + , name = "root" + } end local ok, nn, ret = process (lines, n + 1, -- cgit v1.2.3