summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2004-04-05 18:56:42 +0000
committerKeith Packard <keithp@keithp.com>2004-04-05 18:56:42 +0000
commit5c0983d78468b3a3c064e3f6cc542f115e1b9f39 (patch)
tree34d73d41186c6047e9443cfe3970584e8fb60590
parentc752fa6ceeb5e8d35f162cc8f14d2d33afd429c0 (diff)
Packard)
-rw-r--r--mkhtmlindex.pl10
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>";
}