Changeset 7643


Ignore:
Timestamp:
2004-06-25T15:15:47+12:00 (20 years ago)
Author:
jrm21
Message:

use case-insensitive match for <title> tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/pdftohtml.pl

    r7586 r7643  
    165165        # special - added to remove the filename from the title
    166166        # this should be in the header, before we see "textual content"
    167         if ($line =~ m@<title>(.*?)</title>@) {
     167        if ($line =~ m@<title>(.*?)</title>@i) {
    168168        my $title=$1;
    169169       
     
    171171        if (-r "$title.pdf" || -r "$title.html") {
    172172            # remove the title
    173             $line =~ s@<title>.*?</title>@<title></title><META NAME=\"Orig-title\" CONTENT=\"$title\">@;
     173            $line =~ s@<title>.*?</title>@<title></title>\n<META NAME=\"filename\" CONTENT=\"$title\">@i;
    174174        }
    175175        }
Note: See TracChangeset for help on using the changeset viewer.