diff options
author | Keith Packard <keithp@keithp.com> | 2004-04-05 18:56:42 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2004-04-05 18:56:42 +0000 |
commit | 5c0983d78468b3a3c064e3f6cc542f115e1b9f39 (patch) | |
tree | 34d73d41186c6047e9443cfe3970584e8fb60590 | |
parent | c752fa6ceeb5e8d35f162cc8f14d2d33afd429c0 (diff) |
72. Fix mkhtmlindex.pl to accept upper or lower case html tags. (Keithxo-6_7_0XORG-RELEASE-1-STSF-FORKXORG-RELEASE-1-MERGEXORG-CYGWIN-MERGEXORG-6_7_0XORG-RELEASE-1-STSFXORG-RELEASE-1
Packard)
-rw-r--r-- | mkhtmlindex.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mkhtmlindex.pl b/mkhtmlindex.pl index f5a41e3..e0c6b78 100644 --- a/mkhtmlindex.pl +++ b/mkhtmlindex.pl @@ -57,15 +57,15 @@ EOF open(file, "<$dir/$file") || die "Can't open $dir/$file"; while (<file>) { chop; - if (/^<H2>/) { - if (! /<\/H2>$/) { - while (<file> && ! /<\/H2>$/) { + if (/^<[hH]2>/) { + if (! /<\/[hH]2>$/) { + while (<file> && ! /<\/[hH]2>$/) { ; } } $heading = ""; while (<file>) { - if (/^<H2>/) { + if (/^<[hH]2>/) { last; } $heading = "$heading" . "$_"; @@ -76,7 +76,7 @@ EOF ($name, $descr) = split(/-/, $heading, 2); $file =~ /(.*)\.$vol\.html/; $fname = $1; - $descr =~ s/<[P]>//g; + $descr =~ s/<[pP]>//g; print mindex "<LI><A href=\"$file\">$fname</A> - $descr</LI>"; } |