diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-17 20:12:48 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-17 20:16:23 +0200 |
commit | 0da14caae5d3cf9533a2e82acb60267b9faee03f (patch) | |
tree | 05ddab0f6474e4901e14971ab67b747b807f7aa0 /module/vcomponent/ical/output.scm | |
parent | Remove (@ (global) basedir). (diff) | |
download | calp-0da14caae5d3cf9533a2e82acb60267b9faee03f.tar.gz calp-0da14caae5d3cf9533a2e82acb60267b9faee03f.tar.xz |
Fix global version var.
Diffstat (limited to '')
-rw-r--r-- | module/vcomponent/ical/output.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/vcomponent/ical/output.scm b/module/vcomponent/ical/output.scm index ec2458ba..75e579b8 100644 --- a/module/vcomponent/ical/output.scm +++ b/module/vcomponent/ical/output.scm @@ -18,6 +18,10 @@ :use-module ((datetime instance) :select (zoneinfo)) ) +(define (prodid) + (format #f "-//hugo//calp ~a//EN" + (@ (calp) version))) + ;; Format value depending on key type. ;; Should NOT emit the key. @@ -163,7 +167,7 @@ (define (write-event-to-file event calendar-path) (define cal (make-vcomponent 'VCALENDAR)) - (set! (prop cal 'PRODID) (@ (global) *prodid*) + (set! (prop cal 'PRODID) (prodid) (prop cal 'VERSION) "2.0" (prop cal 'CALSCALE) "GREGORIAN") @@ -191,7 +195,7 @@ PRODID:~a\r VERSION:2.0\r CALSCALE:GREGORIAN\r -" (@ (global) *prodid*) +" (prodid) )) |