From 0da14caae5d3cf9533a2e82acb60267b9faee03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 17 Aug 2020 20:12:48 +0200 Subject: Fix global version var. --- module/vcomponent/ical/output.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'module/vcomponent/ical/output.scm') 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) )) -- cgit v1.2.3