1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-23 21:10:29 +02:00

(format:out-substr): Update the column counter

correctly. This fixes the behavior of ~T (tabbing) after ~F, for
instance.
Patch by Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>.
This commit is contained in:
Rob Browning 2004-01-13 16:56:11 +00:00
parent f801adf122
commit 26a03f0796

View file

@ -94,7 +94,7 @@
(do ((k i (+ k 1)))
((= k n))
(write-char (string-ref str k) format:port))
(set! format:output-col (+ format:output-col n)))
(set! format:output-col (+ format:output-col (- n i))))
;(define (format:out-fill n ch) ; this allocates a new string
; (format:out-str (make-string n ch)))