summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util
diff options
context:
space:
mode:
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";
}