The hazards of not checking things in as they're written.

This test pair was probably written because the perl tokenizer failed
miserably. But I don't quite remember why.


git-svn-id: svn://10.0.0.236/trunk@209632 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org 2006-09-10 09:59:49 +00:00
parent dd309d9f24
commit 5db5051808
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/perl
my $tag = '<span class=line>';
$tag .= keys(@ARGV). ' ';
$tag .= '</span>';
$tag .= keys(@ARGV).' ';
$tag .= '</span>';

View File

@ -0,0 +1,18 @@
#!/usr/bin/perl
sub linetag {
#$frag =~ s/\n/"\n".&linetag($virtp.$fname, $line)/ge;
# my $tag = '<a href="'.$_[0].'#L'.$_[1].
# '" name="L'.$_[1].'">'.$_[1].' </a>';
my $tag;
$tag = '<span class=line>';
$tag .= ' ' if $_[1] < 10;
$tag .= ' ' if $_[1] < 100;
$tag .= ' ' if $_[1] < 1000;
$tag .= &fileref($_[1], $_[0], $_[1]). ' ';
$tag .= '</span>';
$tag .= &fileref($_[1], $_[0], $_[1]).' ';
$tag .= '</span>';
$tag =~ s/<a/<a name=$_[1]/;
# $_[1]++;
return($tag);
}