aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-09-06 17:44:52 +0200
committerWillem Jan Palenstijn2012-09-06 17:44:52 +0200
commit033e75e6260c4cb42317c1e965d1610b6dde331b (patch)
tree7a562a92f6afe1e62524d578fb6f953d9d6d4029 /devtools
parent1ea69b53cec1ed1dffab05a20d8df6bae074c2bb (diff)
downloadscummvm-rg350-033e75e6260c4cb42317c1e965d1610b6dde331b.tar.gz
scummvm-rg350-033e75e6260c4cb42317c1e965d1610b6dde331b.tar.bz2
scummvm-rg350-033e75e6260c4cb42317c1e965d1610b6dde331b.zip
CREDITS: Output warning if name is too wide for text output
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/credits.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/devtools/credits.pl b/devtools/credits.pl
index 1fd40dbab2..e8cb1154e7 100755
--- a/devtools/credits.pl
+++ b/devtools/credits.pl
@@ -359,6 +359,9 @@ sub add_person {
my $min_name_width = length $desc > 0 ? $max_name_width : 0;
$name = $nick if $name eq "";
$name = html_entities_to_ascii($name);
+ if (length $name > $max_name_width) {
+ print STDERR "Warning: max_name_width is too small (" . $max_name_width . " < " . (length $name) . " for \"" . $name. "\")\n";
+ }
$desc = html_entities_to_ascii($desc);
$tab = " " x ($section_level * 2 + 1);