diff options
author | Som Snytt <som.snytt@gmail.com> | 2013-11-15 11:04:09 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2013-11-18 13:39:22 -0800 |
commit | 8f20fa23dbb5b000f0889132b8c6e2acfff096b3 (patch) | |
tree | 8babddcc8944c37d98c5f0d27948a5f1d5440432 /build.xml | |
parent | 02359a09ebb75deee2481d48835d5352b59e1c7e (diff) | |
download | scala-8f20fa23dbb5b000f0889132b8c6e2acfff096b3.tar.gz scala-8f20fa23dbb5b000f0889132b8c6e2acfff096b3.tar.bz2 scala-8f20fa23dbb5b000f0889132b8c6e2acfff096b3.zip |
SI-7969 REPL variable columnar output
Extend column formatting to make columns only as wide as
their widest element. This is similar to what `ls` does.
Given the longest and shortest string, which bound the
min and max column count, compute the layout for those
possible column counts, and choose the minimal row count
and minimal column count.
The junit test is under pending because it uses expecty.
(Edit: updated without expectytations.)
Example that really benefits, witness the skinny columns:
```
scala> math.
BigDecimal PartiallyOrdered cosh rint
BigInt Pi exp round
E ScalaNumber expm1 signum
Equiv ScalaNumericAnyConversions floor sin
Fractional ScalaNumericConversions hypot sinh
IEEEremainder abs log sqrt
Integral acos log10 tan
LowPriorityEquiv asin log1p tanh
LowPriorityOrderingImplicits atan max toDegrees
Numeric atan2 min toRadians
Ordered cbrt package ulp
Ordering ceil pow
PartialOrdering cos random
```
more
Diffstat (limited to 'build.xml')
0 files changed, 0 insertions, 0 deletions