From 00bb55b5c344899f16071222173ebf1ac21b5b7e Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 26 Dec 2021 17:40:57 +0800 Subject: [PATCH] update --- calendar/ics.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/calendar/ics.go b/calendar/ics.go index e56f53f..ed82d71 100644 --- a/calendar/ics.go +++ b/calendar/ics.go @@ -27,8 +27,7 @@ TZNAME:CST DTSTART:19700101T000000 END:STANDARD END:VTIMEZONE -{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }} -BEGIN:VEVENT +{{with .Events}}{{ if gt (len .) 0 }}{{ range $event := . }}BEGIN:VEVENT DTSTART:{{$event.Start|icstime}} DTEND:{{$event.End|icstime}} DTSTAMP:{{now|icstime}} @@ -41,8 +40,7 @@ SEQUENCE:0 STATUS:CONFIRMED SUMMARY:{{$event.Name}} TRANSP:TRANSPARENT -END:VEVENT -{{end}}{{end}}{{end}} +END:VEVENT{{end}}{{end}}{{end}} END:VCALENDAR` var tmpl *template.Template