Welcome! Please see the About page for a little more info on how this works.

0 votes
in Printing by
Filled pretty printing (where we try to fit as many elements on a line as possible) is being too aggressive as we can see when we try to print the following array:

user> (binding [*print-right-margin* 20] (pprint (int-array (range 10))))

Produces:

[0,
 1,
 2,
 3,
 4, 5, 6, 7, 8, 9]

Rather than

[0, 1, 2, 3, 4,
 5, 6, 7, 8, 9]

or something like that. (I haven't worked through the exact correct representation for this case).

We currently only use :fill style newlines for native java arrays.

7 Answers

0 votes
by
0 votes
by

Comment made by: importer

tomfaulhaber said: This patch was attached to the wrong bug. It should be attached to bug #347. There is no fix for this bug yet.

0 votes
by

Comment made by: importer

stu said: (link: [file:diLxv6y4Sr35GVeJe5cbLr)]

0 votes
by

Comment made by: importer

stu said: The second patch includes the first, and adds another test.

0 votes
by

Comment made by: richhickey

Is this current?

0 votes
by

Comment made by: stu

Tom, this patch doesn't apply, and I am not sure why. Can you take a look?

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-346 (reported by alex+import)
...