Howdy!

"Andy Wingo" <wi...@pobox.com> writes:

> commit b8596c08ac2ef2201c1e8559ac5f4d62ebde3d91
> Author: Andy Wingo <wi...@pobox.com>
> Date:   Tue Dec 29 13:26:41 2009 +0100
>
>     add ~...@y truncated printing directive to format
>     
>     * doc/ref/misc-modules.texi (Formatted Output): Add documentation for
>       the new ~...@y format directive.
>       (Pretty Printing): Add documentation for truncated-write.
>     
>     * module/ice-9/format.scm (format): Add ~...@y, 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)
> +...@print{} "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’.


Reply via email to