Opened 10 years ago

Closed 10 years ago

#836 closed defect (invalid)

Format function handling of ~< ~> seems off

Reported by: TreeRex Owned by:
Priority: normal Milestone:
Component: ANSI CL Compliance Version: trunk
Keywords: format pretty-print Cc:


Consider the following:

(format nil "~<{~;~{~,3f~^, ~:_~}~;};~:>"
        (list (loop for x from 0 to 30 collecting (expt 1.065 x))))

Under sbcl and LW this puts 11 or 10 (respectively) numbers per line. On CCL (1.7-dev-r14672M-trunk) it does not, returning everything on a single line.

This is a pretty esoteric format string, and it's possible I'm completely misunderstanding what it should do, but I *think* CCL is doing something wrong.

Change History (2)

comment:1 Changed 10 years ago by rme

Make sure *print-pretty* is set to t. It's nil by default in CCL.

comment:2 Changed 10 years ago by TreeRex

  • Resolution set to invalid
  • Status changed from new to closed

D'oh, that did it. Setting *print-pretty* was the magic I needed. Thanks!

Note: See TracTickets for help on using tickets.