Rewrite vcard function using format
This commit is contained in:
parent
4255f1fe43
commit
03cad0f3e2
@ -16,19 +16,7 @@
|
|||||||
(else (iter len rem (+ idx 1) res))))))
|
(else (iter len rem (+ idx 1) res))))))
|
||||||
|
|
||||||
(define (vcard name number)
|
(define (vcard name number)
|
||||||
(with-output-to-string
|
(format "BEGIN:VCARD~%N:;~a;;;~%TEL;TYPE=cell:~a~%END:VCARD~%" name number))
|
||||||
(lambda ()
|
|
||||||
(display "BEGIN:VCARD")
|
|
||||||
(newline)
|
|
||||||
(display "N:;")
|
|
||||||
(display name)
|
|
||||||
(display ";;;")
|
|
||||||
(newline)
|
|
||||||
(display "TEL;TYPE=cell:")
|
|
||||||
(display number)
|
|
||||||
(newline)
|
|
||||||
(display "END:VCARD")
|
|
||||||
(newline))))
|
|
||||||
|
|
||||||
(define (tsv-contact->vcard line)
|
(define (tsv-contact->vcard line)
|
||||||
(let* ((fields (tsv-fields line))
|
(let* ((fields (tsv-fields line))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user