Fix erroneous newline when sending notifications.
This commit is contained in:
parent
bc5db8db99
commit
1840f5675b
6 changed files with 1 additions and 16 deletions
|
@ -135,18 +135,12 @@
|
||||||
res))))))
|
res))))))
|
||||||
|
|
||||||
(define (print-duck-signature sig)
|
(define (print-duck-signature sig)
|
||||||
;;(print sig)
|
|
||||||
(let* ((curry-depth (get-curry-depth sig))
|
(let* ((curry-depth (get-curry-depth sig))
|
||||||
(name (get-signature-name sig))
|
(name (get-signature-name sig))
|
||||||
(nameline (format " ~A~A" (make-string curry-depth #\() name))
|
(nameline (format " ~A~A" (make-string curry-depth #\() name))
|
||||||
(spaceline (make-string (add1 (string-length nameline)) #\space))
|
(spaceline (make-string (add1 (string-length nameline)) #\space))
|
||||||
(args (gather-signature-arguments sig))
|
(args (gather-signature-arguments sig))
|
||||||
(eargs (expand-signature-arguments args)))
|
(eargs (expand-signature-arguments args)))
|
||||||
;;(print " curry depth = " curry-depth)
|
|
||||||
;;(print " name = " name)
|
|
||||||
;;(print " args = " args)
|
|
||||||
;;(printf " eargs = ~S" eargs)
|
|
||||||
;;(newline)
|
|
||||||
(if (null? eargs)
|
(if (null? eargs)
|
||||||
(print nameline ")")
|
(print nameline ")")
|
||||||
(let loop ((args eargs)
|
(let loop ((args eargs)
|
||||||
|
|
|
@ -378,7 +378,7 @@
|
||||||
(print "Mailman synchronization disabled with manually specified current month."))))
|
(print "Mailman synchronization disabled with manually specified current month."))))
|
||||||
((notify)
|
((notify)
|
||||||
(let ((nmembers (members-to-notify MB (-notify-months-))))
|
(let ((nmembers (members-to-notify MB (-notify-months-))))
|
||||||
(newline)
|
(stdout-newline)
|
||||||
(if (null? nmembers)
|
(if (null? nmembers)
|
||||||
(print "Everyone paid on time.")
|
(print "Everyone paid on time.")
|
||||||
(let ()
|
(let ()
|
||||||
|
|
|
@ -129,8 +129,6 @@
|
||||||
(ptbl (table->string
|
(ptbl (table->string
|
||||||
pdata
|
pdata
|
||||||
#:border '(((#:right light) ... none) ...))))
|
#:border '(((#:right light) ... none) ...))))
|
||||||
;;(print pdata)
|
|
||||||
;;(write ptbl)(newline)
|
|
||||||
(list k ptbl)))
|
(list k ptbl)))
|
||||||
((fee)
|
((fee)
|
||||||
(let* ((pdata
|
(let* ((pdata
|
||||||
|
@ -150,8 +148,6 @@
|
||||||
(ptbl (table->string
|
(ptbl (table->string
|
||||||
pdata
|
pdata
|
||||||
#:border '(((#:right light) ... none) ...))))
|
#:border '(((#:right light) ... none) ...))))
|
||||||
;;(print pdata)
|
|
||||||
;;(write ptbl)(newline)
|
|
||||||
(list k ptbl)))
|
(list k ptbl)))
|
||||||
(else
|
(else
|
||||||
(if v
|
(if v
|
||||||
|
@ -182,7 +178,6 @@
|
||||||
(list (list (ansi-string #:red "DokuWiki")
|
(list (list (ansi-string #:red "DokuWiki")
|
||||||
(ansi-string #:red "---")))))
|
(ansi-string #:red "---")))))
|
||||||
(result (filter identity (append head body mailman dokuwiki))))
|
(result (filter identity (append head body mailman dokuwiki))))
|
||||||
;;(write result)(newline)
|
|
||||||
(table->string result
|
(table->string result
|
||||||
#:border '(((#:bottom #:right light) ... (#:bottom light))
|
#:border '(((#:bottom #:right light) ... (#:bottom light))
|
||||||
...
|
...
|
||||||
|
|
|
@ -366,7 +366,6 @@
|
||||||
slw))
|
slw))
|
||||||
state)))
|
state)))
|
||||||
(let ((sln (sgr-list-neutralize sl)))
|
(let ((sln (sgr-list-neutralize sl)))
|
||||||
;;(write sln)(newline)
|
|
||||||
(values (list sln) initial-state))))
|
(values (list sln) initial-state))))
|
||||||
|
|
||||||
;; Renders all the lines and appends the resulting blocks
|
;; Renders all the lines and appends the resulting blocks
|
||||||
|
|
|
@ -204,8 +204,6 @@
|
||||||
(tbl1 (render-cells-widths ptbl col-widths))
|
(tbl1 (render-cells-widths ptbl col-widths))
|
||||||
;;(_ (print tbl1))
|
;;(_ (print tbl1))
|
||||||
(tbl2 (map expand-row-height tbl1)))
|
(tbl2 (map expand-row-height tbl1)))
|
||||||
;;(write tbl1)(newline)
|
|
||||||
;;(write tbl2)(newline)
|
|
||||||
;; Just return the result - both the table and cached column widths
|
;; Just return the result - both the table and cached column widths
|
||||||
(values tbl2
|
(values tbl2
|
||||||
col-widths))))
|
col-widths))))
|
||||||
|
|
|
@ -88,7 +88,6 @@
|
||||||
(borders (expand-table-style border-spec num-columns num-rows))
|
(borders (expand-table-style border-spec num-columns num-rows))
|
||||||
(col-separators (table-col-separators? borders))
|
(col-separators (table-col-separators? borders))
|
||||||
(rows (merge-rows ptbl borders col-separators unicode?)))
|
(rows (merge-rows ptbl borders col-separators unicode?)))
|
||||||
;;(write rows)(newline)
|
|
||||||
(let loop ((rows rows)
|
(let loop ((rows rows)
|
||||||
(borders borders)
|
(borders borders)
|
||||||
(res '())
|
(res '())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue