[racket] pretty-print example?

From: Altenburg, Robert (raltenburg at state.pa.us)
Date: Thu Nov 4 10:11:02 EDT 2010

I have an application where I'd like to limit the
width of the printed results.  It seems like
pretty-print should accomplish that, but when
I tried the code below it's not adding newlines.

(require racket/pretty)
(pretty-print-columns 25)
(pretty-display "A123456789 123456789 123456789 123456789")

Does anyone happen to have a working example?


Posted on the users mailing list.