Skip to content

Commit

Permalink
remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
Li Haoyi committed Aug 5, 2015
1 parent 026505c commit a33c8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repl/src/main/scala/ammonite/repl/frontend/FrontEnd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object FrontEnd{
val gap = 2
val maxLength = snippets.maxBy(_.replaceAll("\u001B\\[[;\\d]*m", "").length).length + gap
val columns = math.max(1, width / maxLength)
println(s"width $width, maxLength: $maxLength, columns: $columns")

snippets.grouped(columns).flatMap{
case first :+ last => first.map(_.padTo(width / columns, ' ')) :+ last :+ "\n"
}
Expand Down

0 comments on commit a33c8c0

Please sign in to comment.