aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOri Avtalion2010-04-12 19:40:54 +0000
committerOri Avtalion2010-04-12 19:40:54 +0000
commitb5612d0cf6016dae72082c916859b041939cbd25 (patch)
treef6dd10913dde2e34e85b32df34ed1ede4a3670c5 /tools
parent050aca584ba9b77c169b707db2e2a427e8c92637 (diff)
downloadscummvm-rg350-b5612d0cf6016dae72082c916859b041939cbd25.tar.gz
scummvm-rg350-b5612d0cf6016dae72082c916859b041939cbd25.tar.bz2
scummvm-rg350-b5612d0cf6016dae72082c916859b041939cbd25.zip
Remove trailing whitespace from person names with no description
svn-id: r48642
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) {