diff --git a/calendar/ics.go b/calendar/ics.go index fdd4720..83fc21b 100644 --- a/calendar/ics.go +++ b/calendar/ics.go @@ -3,6 +3,7 @@ package calendar import ( "bytes" "fmt" + "strings" "text/template" "time" @@ -60,7 +61,8 @@ func ICS(cal_id string, from time.Time, to time.Time) (string, error) { if err := tmpl.Execute(buf, cal); err != nil { return "", err } - return buf.String(), nil + + return strings.ReplaceAll(buf.String(), "\n", "\r\n"), nil } func icstime(t time.Time) string {