summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbom/calc.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/bom/calc.pl b/bom/calc.pl
index dd04448..45e9525 100755
--- a/bom/calc.pl
+++ b/bom/calc.pl
@@ -2,8 +2,8 @@
#
# bom/calc.pl - Calculate device cost based on stock database
#
-# Written 2014-2015 by Werner Almesberger
-# Copyright 2014-2015 by Werner Almesberger
+# Written 2014-2015, 2017 by Werner Almesberger
+# Copyright 2014-2015, 2017 by Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -188,7 +188,7 @@ sub part
printf("%6d/", $best_break) if $show_break;
printf("%6d ", $best_n);
if (length $group > 9) {
- printf("%s\n%16s", $group, "");
+ printf("%s\n%*s", $group, 16 + 7 * $show_break, "");
} else {
printf("%-9s", $group);
}