[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PATCH: people.pl



        Hi!

 The people.pl script currently generates lots of <a name="$lastname">
entries that are just duplicated.  The simple attached patch fixes this
and silences tons of lines in the tidy output.

 Have fun.
Alfie
-- 
    - The horrible, ugly, terrible, never-should-have-happened-in-a-megayear
    bug which caused most line-entries to crash has been fixed.  Mea culpa.
 -- Daniel Burrows, changelog.Debian for aptitude (0.2.5.1-1)
--- people.pl	2002/11/22 14:24:11	1.1
+++ people.pl	2002/11/27 17:15:59
@@ -30,9 +30,16 @@
 
 # put the auxilliary functions first to shut up perl >= 5.6
 
+my %ppl_ref = ();
+
 sub print_maintainer {
 	my ($names) = @_;
-	print "<dt><strong><a name=\"$lastname\">$lastname</a>";
+	if ($ppl_ref{$lastname}) {
+           print "<dt><strong>$lastname";
+	} else {
+	   print "<dt><strong><a name=\"$lastname\">$lastname</a>";
+           $ppl_ref{$lastname} = 1;
+	}
 	if ($lastname ne "Wookey") {
 		if ($firstname) { print ", $firstname"; }
 	}

Attachment: pgpPgBSszjERn.pgp
Description: PGP signature


Reply to: