From 087f00c2fbbe26c2442e8e012e2b77cde9faaf06 Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Sun, 3 Jan 2010 22:40:38 +0530 Subject: Fix alignment of unarmed combat skill column. --- crawl-ref/source/util/gen-apt.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/util') 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"; } -- cgit v1.2.3-54-g00ecf