[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Truncated print
From: |
Ludovic Courtès |
Subject: |
Truncated print |
Date: |
Sun, 03 Jan 2010 00:52:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Howdy!
"Andy Wingo" <address@hidden> writes:
> commit b8596c08ac2ef2201c1e8559ac5f4d62ebde3d91
> Author: Andy Wingo <address@hidden>
> Date: Tue Dec 29 13:26:41 2009 +0100
>
> add address@hidden truncated printing directive to format
>
> * doc/ref/misc-modules.texi (Formatted Output): Add documentation for
> the new address@hidden format directive.
> (Pretty Printing): Add documentation for truncated-write.
>
> * module/ice-9/format.scm (format): Add address@hidden, for doing a
> truncated
> print. Also, allow both ~y variants to take a width parameter.
Nice! Can you please add test cases, e.g., based on the examples added
to the manual?
> +(truncated-print "The quick brown fox" #:width 10) (newline)
> address@hidden "The quick brown..."
I think it’d be nice to default to ‘HORIZONTAL ELLIPSIS’ (U+2026).
Perhaps the ellipsis string could be a keyword parameter?
Thanks,
Ludo’.
- Truncated print,
Ludovic Courtès <=