Use format egg to pad comic numbers

This commit is contained in:
cælōrum spectātrīx 2025-11-21 23:02:24 +01:00
parent d2f93fe609
commit 3fd48ba75f
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
# Dependencies # Dependencies
- [CHICKEN Scheme](https://call-cc.org) 5 or 6; - [CHICKEN Scheme](https://call-cc.org) 5 or 6;
- A few CHICKEN extensions, installable using `chicken-install -s html-parser openssl http-client matchable srfi-18`. - A few CHICKEN extensions, installable using `chicken-install -s format html-parser openssl http-client matchable srfi-18`.
# Building # Building

View file

@ -11,7 +11,7 @@
(define (download-comic-image index) (define (download-comic-image index)
(format (current-error-port) "* downloading comic image ~a~%" index) (format (current-error-port) "* downloading comic image ~a~%" index)
(call-with-output-file (format #f "rain-~a.png" index) (call-with-output-file (format #f "rain-~4,48,d.png" (string->number index))
(lambda (out) (lambda (out)
(call-with-input-request (find-comic-image index) (call-with-input-request (find-comic-image index)
#f #f

View file

@ -8,9 +8,9 @@ exec csi -s "$0" "$@"
(scheme file) (scheme file)
(chicken base) (chicken base)
(chicken io) (chicken io)
(chicken format)
(chicken port) (chicken port)
(chicken process-context) (chicken process-context)
(format)
(html-parser) (html-parser)
(openssl) ; has to be before http-client (openssl) ; has to be before http-client
(http-client) (http-client)