From 3505e0d8e96fb57a90989b168f09850a4e0efa46 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 28 Aug 2024 00:50:22 +0200 Subject: pass only non-empty arrays to template --- bin/events2md.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/events2md.pl b/bin/events2md.pl index 4272291..12fe7a3 100755 --- a/bin/events2md.pl +++ b/bin/events2md.pl @@ -247,11 +247,11 @@ sub resolve_event time_brief => $time_brief, summary => $summary, description => $description, - attendees => [@attendees], + attendees => @attendees ? [@attendees] : undef, location => $location, timespan => $timespan, price => $price, - attachments => [@attachments], + attachments => @attachments ? [@attachments] : undef, }; } -- cgit v1.2.3