Use ellipsis character in truncated pretty-print of sequences
authorMichael Gran <spk121@yahoo.com>
Tue, 9 Nov 2010 02:57:29 +0000 (18:57 -0800)
committerMichael Gran <spk121@yahoo.com>
Tue, 9 Nov 2010 02:57:29 +0000 (18:57 -0800)
* module/ice-9/pretty-print.scm (print-sequence): use ellipsis when available

module/ice-9/pretty-print.scm

index c1d3b36..5ea66c7 100644 (file)
@@ -337,7 +337,7 @@ sub-expression, via the @var{breadth-first?} keyword argument."
            ((and (= i (1- len)) (or (zero? i) (> width 1)))
             (print (ref x i) (if (zero? i) width (1- width))))
            ((<= width (+ 1 ellipsis-width))
-            (display "..."))
+            (display ellipsis))
            (else
             (let ((str
                    (with-fluids ((%default-port-encoding (port-encoding port)))