aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/credits.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/credits.pl b/tools/credits.pl
index b5b7d84014..b320fbc57e 100755
--- a/tools/credits.pl
+++ b/tools/credits.pl
@@ -366,12 +366,13 @@ sub add_person {
my $tab;
if ($mode eq "TEXT") {
+ my $min_name_width = length $desc > 0 ? $max_name_width : 0;
$name = $nick if $name eq "";
$name = html_entities_to_ascii($name);
$desc = html_entities_to_ascii($desc);
$tab = " " x ($section_level * 2 + 1);
- printf $tab."%-".$max_name_width.".".$max_name_width."s", $name;
+ printf $tab."%-".$min_name_width.".".$max_name_width."s", $name;
# Print desc wrapped
if (length $desc > 0) {