aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2020-01-13 00:06:13 +0100
committerHugo Hörnquist <hugo@hornquist.se>2020-01-13 00:06:13 +0100
commit379644aebc0cfb90fab6e41206acab2c18b7f062 (patch)
tree36f00b5178ecd6290584635edfa2783ecf42c251 /module
parentAdd some tests to do. (diff)
downloadcalp-379644aebc0cfb90fab6e41206acab2c18b7f062.tar.gz
calp-379644aebc0cfb90fab6e41206acab2c18b7f062.tar.xz
Fix HTML preview prev month.
Diffstat (limited to 'module')
-rw-r--r--module/output/html.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index f629257e..4531964e 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -255,7 +255,7 @@
(prev-month-len (days-in-month (previous-month month)))
(month-start (week-day date)))
(append (map (td '(class "prev") (month- date))
- (iota month-start (- prev-month-len month-start)))
+ (iota month-start (1+ (- prev-month-len month-start))))
(map (lambda (p) `(td (@ ,@(assq-merge '((class " cur ")) (cdar p)))
,@(cdr p)))
(map (lambda (d) `((@ (class ,(when (date=? today (set (date-day date) d))