mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
renaming counted line-numbers
This commit is contained in:
parent
8470534c39
commit
ab57bb7681
2 changed files with 3 additions and 4 deletions
|
@ -12,7 +12,6 @@
|
|||
(define (output* str)
|
||||
(fn (row col string-width)
|
||||
(list-queue-add-back! queue str)
|
||||
;;(set! lines (append lines (list str)))
|
||||
(call-with-current-continuation
|
||||
(lambda (cc)
|
||||
(set! resume cc)
|
||||
|
@ -286,7 +285,7 @@
|
|||
(else
|
||||
(lp (cdr ls) infinite? width (cons (car ls) res)))))))
|
||||
|
||||
;; break lines only, don't fmt-join short lines or justify
|
||||
;; break lines only, don't join short lines or justify
|
||||
(define (wrapped/char . ls)
|
||||
(fn (output width string-width)
|
||||
(define (kons-in-line str)
|
||||
|
@ -445,6 +444,6 @@
|
|||
(each line
|
||||
(fn () (lp))))))))))
|
||||
|
||||
(define (counted . o)
|
||||
(define (line-numbers . o)
|
||||
(let ((start (if (pair? o) (car o) 1)))
|
||||
(joined/range displayed start #f "\n")))
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
(export
|
||||
call-with-output-generator call-with-output-generators
|
||||
string->line-generator
|
||||
columnar tabular wrapped wrapped/char justified counted from-file)
|
||||
columnar tabular wrapped wrapped/char justified line-numbers from-file)
|
||||
(include "column.scm"))
|
||||
|
|
Loading…
Add table
Reference in a new issue