From 9b1a32e60e0db559748a97a7057fc7155d4a6965 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Fri, 1 Dec 2023 14:25:45 +0100 Subject: [PATCH] Fix source path index color --- compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala b/compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala index e132d8749a71..b2094bd8a94a 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala @@ -202,7 +202,8 @@ class TastyPrinter(bytes: Array[Byte]) { sb.append(s"\n source paths:\n") val sortedPath = sources.toSeq.sortBy(_._1.index) for ((addr, nameRef) <- sortedPath) { - sb.append(treeStr("%6d: ".format(addr.index))) + sb.append(treeStr("%6d".format(addr.index))) + sb.append(": ") sb.append(nameStr(s"${nameRef.index} [${tastyName(nameRef)}]")) sb.append("\n") }