From 033e75e6260c4cb42317c1e965d1610b6dde331b Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Thu, 6 Sep 2012 17:44:52 +0200 Subject: CREDITS: Output warning if name is too wide for text output --- devtools/credits.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'devtools') 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); -- cgit v1.2.3