Simple period comments display.
This commit is contained in:
parent
1a14fd2bc4
commit
0a688fc057
2 changed files with 9 additions and 5 deletions
|
@ -110,8 +110,10 @@
|
||||||
(map
|
(map
|
||||||
(lambda (p)
|
(lambda (p)
|
||||||
(list
|
(list
|
||||||
(month->string (period-since p))
|
(string-append (month->string (period-since p)) " "
|
||||||
(month->string (period-before p))))
|
(or (period-scomment p) ""))
|
||||||
|
(string-append (month->string (period-before p)) " "
|
||||||
|
(or (period-bcomment p) ""))))
|
||||||
v))
|
v))
|
||||||
#:col-border #t)))
|
#:col-border #t)))
|
||||||
(else
|
(else
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
(
|
(
|
||||||
period-since
|
period-since
|
||||||
period-before
|
period-before
|
||||||
|
period-scomment
|
||||||
|
period-bcomment
|
||||||
period-markers->periods
|
period-markers->periods
|
||||||
periods-duration
|
periods-duration
|
||||||
month-in-periods?
|
month-in-periods?
|
||||||
|
@ -81,7 +83,7 @@
|
||||||
(if (null? l)
|
(if (null? l)
|
||||||
(list #t
|
(list #t
|
||||||
(if cb
|
(if cb
|
||||||
(reverse (cons (make-period cb #f) ps))
|
(reverse (cons (make-period (car cb) #f (cadr cb)) ps))
|
||||||
(reverse ps))
|
(reverse ps))
|
||||||
""
|
""
|
||||||
-1)
|
-1)
|
||||||
|
@ -99,11 +101,11 @@
|
||||||
(if (eq? mtype rmt)
|
(if (eq? mtype rmt)
|
||||||
(if cb
|
(if cb
|
||||||
(loop (cdr l)
|
(loop (cdr l)
|
||||||
(cons (make-period cb month) ps)
|
(cons (make-period (car cb) month (cadr cb) comment) ps)
|
||||||
#f)
|
#f)
|
||||||
(loop (cdr l)
|
(loop (cdr l)
|
||||||
ps
|
ps
|
||||||
month))
|
(list month comment)))
|
||||||
(list #f
|
(list #f
|
||||||
(reverse ps)
|
(reverse ps)
|
||||||
(sprintf "Invalid start/stop sequence marker ~A" marker)
|
(sprintf "Invalid start/stop sequence marker ~A" marker)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue