From b5612d0cf6016dae72082c916859b041939cbd25 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Mon, 12 Apr 2010 19:40:54 +0000 Subject: Remove trailing whitespace from person names with no description svn-id: r48642 --- tools/credits.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') 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) { -- cgit v1.2.3