aboutsummaryrefslogtreecommitdiff
path: root/config.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-02-21 16:12:30 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-02-21 16:12:30 +0100
commitdf7145e5d13f2884266ceb44276fded522c9d8d1 (patch)
treea998088e282c74defbc1ed1edf3150678825e99a /config.scm
parentGot ical output workign with new date system. (diff)
downloadcalp-df7145e5d13f2884266ceb44276fded522c9d8d1.tar.gz
calp-df7145e5d13f2884266ceb44276fded522c9d8d1.tar.xz
add dirty hack to handle "some" bad HTML.
Diffstat (limited to 'config.scm')
-rw-r--r--config.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.scm b/config.scm
index 4efdccb6..ef381bfd 100644
--- a/config.scm
+++ b/config.scm
@@ -54,7 +54,8 @@
(description-filter
(lambda (ev str)
- (cond [(member (attr (parent ev) 'NAME) '("d_sektionen" #; "lithekod"
- ))
- (parse-html str)]
+ (cond [(member (attr (parent ev) 'NAME) '("d_sektionen" "lithekod"))
+ (parse-html (regexp-substitute/global
+ #f "<br>" str
+ 'pre "<br/>" 'post))]
[else (parse-links str)])))