diff options
author | Willem Jan Palenstijn | 2012-09-06 17:44:52 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2012-09-06 17:44:52 +0200 |
commit | 033e75e6260c4cb42317c1e965d1610b6dde331b (patch) | |
tree | 7a562a92f6afe1e62524d578fb6f953d9d6d4029 /devtools | |
parent | 1ea69b53cec1ed1dffab05a20d8df6bae074c2bb (diff) | |
download | scummvm-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-x | devtools/credits.pl | 3 |
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); |