diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-03-25 13:56:15 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-03-25 13:56:15 +0100 |
commit | 7c2adefaee82dbf2843dc6bf5364c4b664b4b366 (patch) | |
tree | e831c289deafdd41758a51dc9092c2e3fb5d1f86 /module/vcalendar/output.scm | |
parent | Fix events being dropped by sorting them. (diff) | |
download | calp-7c2adefaee82dbf2843dc6bf5364c4b664b4b366.tar.gz calp-7c2adefaee82dbf2843dc6bf5364c4b664b4b366.tar.xz |
Minor cleanups.
Diffstat (limited to '')
-rw-r--r-- | module/vcalendar/output.scm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/module/vcalendar/output.scm b/module/vcalendar/output.scm index 5baa293a..48197cb4 100644 --- a/module/vcalendar/output.scm +++ b/module/vcalendar/output.scm @@ -74,15 +74,16 @@ Removes the X-HNH-FILENAME attribute, and sets PRODID to (lambda () (format port "~a:~a~%" key (string->ics-safe-string - (case key - ((DTSTART DTEND) - (if (string? value) - value - (time->string value "~Y~m~dT~H~M~S"))) + (or (case key + ((DTSTART DTEND) + (if (string? value) + value + (time->string value "~Y~m~dT~H~M~S"))) - ((RRULE DURATION) "Just forget it") + ((DURATION) "Just forget it") - (else value))))) + (else value)) + "")))) ;; Catch (lambda (type proc fmt . args) |