From 2a6ad35502bd2f456c7cb663b428f1f1d1040b92 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Fri, 13 Jul 2012 13:41:00 -0400 Subject: [PATCH] correct CommandUtil.aligned to use provided prefix --- main/command/CommandUtil.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/command/CommandUtil.scala b/main/command/CommandUtil.scala index fb211fd19..f67550906 100644 --- a/main/command/CommandUtil.scala +++ b/main/command/CommandUtil.scala @@ -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)