summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-05-07 16:15:02 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-05-07 16:15:02 (GMT)
commitb57fa646c84ea31f9229c9f9900dc83476f603c2 (patch)
treefc8c8d5c7e4e4ee9a6d09936b6c2f5369e661ca2
parent71f507662cd4fa4bb50cfcfc8e3499aec2c5a7a3 (diff)
downloadmisc-master.zip
misc-master.tar.gz
misc-master.tar.bz2
bom/calc.pl (part): correct indentation of wrapped lines when showing breaksHEADmaster
-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);
}