mirror of https://github.com/sbt/sbt.git
correct CommandUtil.aligned to use provided prefix
This commit is contained in:
parent
2cf9b4bf6e
commit
2a6ad35502
|
|
@ -24,7 +24,7 @@ object CommandUtil
|
|||
def aligned(pre: String, sep: String, in: Seq[(String, String)]): Seq[String] =
|
||||
{
|
||||
val width = in.map(_._1.length).max
|
||||
in.map { case (a, b) => (" " + fill(a, width) + sep + b) }
|
||||
in.map { case (a, b) => (pre + fill(a, width) + sep + b) }
|
||||
}
|
||||
def fill(s: String, size: Int) = s + " " * math.max(size - s.length, 0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue