diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-03-08 00:24:17 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-03-15 01:43:12 +0100 |
commit | cf43fc7699a079ae18c494608ff38f868f2046cf (patch) | |
tree | 1681b79de868dbdb846a90473dd32eec1cb55a31 /module/vcomponent/datetime/output.scm | |
parent | Respecificy return value of with-atomic-output-to-file. (diff) | |
download | calp-cf43fc7699a079ae18c494608ff38f868f2046cf.tar.gz calp-cf43fc7699a079ae18c494608ff38f868f2046cf.tar.xz |
Move summary-filter and description-filter configs to more sensible place.
Diffstat (limited to '')
-rw-r--r-- | module/vcomponent/datetime/output.scm | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/module/vcomponent/datetime/output.scm b/module/vcomponent/datetime/output.scm index fa662286..2b528423 100644 --- a/module/vcomponent/datetime/output.scm +++ b/module/vcomponent/datetime/output.scm @@ -1,18 +1,10 @@ (define-module (vcomponent datetime output) :use-module (hnh util) - :use-module (calp util config) - :use-module (hnh util exceptions) :use-module (datetime) :use-module (vcomponent base) :use-module (text util) ) -(define-config summary-filter (lambda (_ a) a) - pre: (ensure procedure?)) - -(define-config description-filter (lambda (_ a) a) - pre: (ensure procedure?)) - ;; ev → sxml (define-public (format-recurrence-rule ev) `("Upprepas " @@ -36,15 +28,6 @@ (map value it))))) ".")) -(define-public (format-summary ev str) - ((get-config 'summary-filter) ev str)) - -;; NOTE this should have information about context (html/term/...) -(define-public (format-description ev str) - (catch #t (lambda () ((get-config 'description-filter) ev str)) - (lambda (err . args) - (warning "~a on formatting description, ~s" err args) - str))) ;; Takes an event, and returns a pretty string for the time interval ;; the event occupies. |