@@ -22,24 +22,24 @@ private[weaver] object MultiLineShow extends MultiLineShowCompat {
2222 private val indentStep = 1
2323
2424 private [weaver] def show [A ]: Show [A ] = (a : A ) => {
25- val out = new StringBuilder ()
25+ val out = new StringBuilder ()
2626 def loop (a : Any , indent : Int ): Unit = {
2727 val nextIndent = indent + indentStep
2828 a match {
29- case null => out.append(" null" )
29+ case null => out.append(" null" )
3030 case x : Char =>
3131 out.append('\' ' )
3232 if (x == '\' ' ) out.append(" \\ '" ) else printChar(x, out)
3333 out.append('\' ' )
34- case x : Byte => out.append(x.toString())
35- case x : Short => out.append(x.toString())
36- case x : Int => out.append(x.toString())
37- case x : Long => out.append(x.toString())
38- case x : Float => out.append(x.toString())
39- case x : Double => out.append(x.toString())
40- case x : String => printString(filterAnsi(x), out)
41- case None => out.append(" None" )
42- case Nil => out.append(" Nil" )
34+ case x : Byte => out.append(x.toString())
35+ case x : Short => out.append(x.toString())
36+ case x : Int => out.append(x.toString())
37+ case x : Long => out.append(x.toString())
38+ case x : Float => out.append(x.toString())
39+ case x : Double => out.append(x.toString())
40+ case x : String => printString(filterAnsi(x), out)
41+ case None => out.append(" None" )
42+ case Nil => out.append(" Nil" )
4343 case x : Map [_, _] =>
4444 printApply(
4545 collectionClassName(x),
@@ -66,7 +66,7 @@ private[weaver] object MultiLineShow extends MultiLineShowCompat {
6666 if (it.isEmpty) out.append(" empty iterator" )
6767 else out.append(" non-empty iterator" )
6868 case p : Product =>
69- val elementNames = productElementNames(p)
69+ val elementNames = productElementNames(p)
7070 val infiniteElementNames = Iterator
7171 .continually(if (elementNames.hasNext) elementNames.next() else " " )
7272 printApply(
@@ -150,7 +150,7 @@ private[weaver] object MultiLineShow extends MultiLineShowCompat {
150150 case '\r ' => sb.append(" \\ r" )
151151 case '\t ' => sb.append(" \\ t" )
152152 case '\u001B ' => ()
153- case c =>
153+ case c =>
154154 val isNonReadableAscii = c < ' ' || c > '~'
155155 if (isNonReadableAscii && ! Character .isLetter(c)) sb
156156 .append(" \\ u%04x" .format(c.toInt))
0 commit comments