Opened 14 years ago

Closed 14 years ago

#485 closed enhancement (wontfix)

pretty-print should place keyword and keyword value on same line.

Reported by: Alan Post Owned by:
Priority: minor Milestone:
Component: core libraries Version: 4.6.x
Keywords: Cc:
Estimated difficulty:

Description

The following program:

(use extras)
(set! foo `(foo bar: bar baz: baz qux: qux))
(pretty-print `(,@foo ,@foo ,@foo))
(exit)

Produces the following output:

(foo bar:
     bar
     baz:
     baz
     qux:
     qux
     foo
     bar:
     bar
     baz:
     baz
     qux:
     qux
     foo
     bar:
     bar
     baz:
     baz
     qux:
     qux)

I think the output should instead be:

(foo bar: bar
     baz: baz
     qux: qux
     foo 
     bar: bar
     baz: baz
     qux: qux
     foo
     bar: bar
     baz: baz
     qux: qux)

That is, the keyword and it's argument should be on the same line.

This is a stylistic issue, but I hope I'm not the only who thinks pretty-print would look prettier in the second format.

Change History (2)

comment:1 Changed 14 years ago by sjamaan

Milestone: 4.7.0

comment:2 Changed 14 years ago by felix winkelmann

Resolution: wontfix
Status: newclosed

See the comment I added to #489. The same applies here.

Note: See TracTickets for help on using tickets.