summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-03 22:40:38 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-01-03 22:40:38 +0530
commit087f00c2fbbe26c2442e8e012e2b77cde9faaf06 (patch)
tree31e91d733a7c3220d3d636e6f5811330ba4ea20a /crawl-ref/source/util
parent5fa1b6f847c7eb0abc72dd099ead3fd6d632ae99 (diff)
downloadcrawl-ref-087f00c2fbbe26c2442e8e012e2b77cde9faaf06.tar.gz
crawl-ref-087f00c2fbbe26c2442e8e012e2b77cde9faaf06.zip
Fix alignment of unarmed combat skill column.
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-xcrawl-ref/source/util/gen-apt.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/util/gen-apt.pl b/crawl-ref/source/util/gen-apt.pl
index d19ec8a279..a327ef61bc 100755
--- a/crawl-ref/source/util/gen-apt.pl
+++ b/crawl-ref/source/util/gen-apt.pl
@@ -125,7 +125,10 @@ sub aptitude_table {
if ($pos > length($line)) {
$line .= " " x ($pos - length($line));
}
- $line .= sprintf("%*d", length($abbr), $skill);
+
+ my $cwidth = length($abbr);
+ $cwidth = 3 if $cwidth < 3;
+ $line .= sprintf("%*d", $cwidth, $skill);
}
$text .= "$line\n";
}