--- rcs2html.pl 2003/10/26 14:24:32 1.1 +++ rcs2html.pl 2004/01/31 18:50:31 1.2 @@ -5,6 +5,15 @@ my $rcs2log = "rcs2log ".join(" ",@ARGV); my $have_ul = 0; +sub encode { + my $foo = shift; + $foo =~ s//>/g; + $foo =~ s/"/"/g; + return $foo; +} + + open(RCS2LOG, "$rcs2log |") || die "$rcs2log: $!"; while() { chomp; @@ -15,8 +24,7 @@ print "\n"; $have_ul = 0; } - $email =~ s//>/g; + $email = encode($email); $email =~ s/@/(at)/g; $email =~ s/\./(dot)/g; print "$date $who $email\n"; @@ -25,11 +33,11 @@ print "