Handles most long lines

This commit is contained in:
JP Hastings-Spital 2023-12-24 09:10:43 +00:00
parent aa931ed39c
commit ef21f9f216
2 changed files with 5 additions and 5 deletions

View file

@ -13,9 +13,10 @@ DURATION:{{ .duration }}
LOCATION:{{.Page.Params.location.name}}
GEO:{{.Page.Params.location.latitude}};{{.Page.Params.location.longitude}}
SUMMARY:{{.Page.Title}}
DESCRIPTION:{{ .Page.Summary }}
URL:{{.Page.Params.link}}
ATTENDEE;CUTYPE=INDIVIDUAL;CN={{site.Author.name}};PARTSTAT={{ if .Page.Params.attending }}ACCEPTED{{else}}NEEDS-ACTION{{end}}:MAILTO:{{ site.Author.email}}
DESCRIPTION:{{ .Page.Summary | replaceRE "(.{62})(.*)" "$1\r\n $2" | replaceRE "( [^\r\n]{72})([^\r\n]*)" "$1\r\n $2" }}
URL:{{.Page.Params.link | replaceRE "(.{70})(.*)" "$1\r\n $2" | replaceRE "( [^\r\n]{72})([^\r\n]*)" "$1\r\n $2" }}
ATTENDEE;CUTYPE=INDIVIDUAL;CN={{site.Author.name}};
PARTSTAT={{ if .Page.Params.attending }}ACCEPTED{{else}}NEEDS-ACTION{{end}}:MAILTO:{{ site.Author.email}}
END:VEVENT
{{- end }}
END:VCALENDAR

View file

@ -1,5 +1,4 @@
Add single.html for Calendar
Support repeating calendar events
Handle long lines
Handle long lines {cm:2023-12-24}
Ensure ICS files have CRLF endings {cm:2023-12-22}