Ignore:
Timestamp:
1999-07-01T11:55:26+12:00 (25 years ago)
Author:
sjboddie
Message:

Fixed a couple of small bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/HBPlug.pm

    r318 r321  
    7070    if ($line =~ /<font [^>]*?face\s*=\s*\"?(\w+)\"?/i) {
    7171        my $font = $1;
    72         print STDERR "HBPlug::HB_gettext - warning font $font used\n"
     72        print STDERR "HBPlug::HB_gettext - warning removed font $font\n"
    7373        if ($font !~ /^arial$/i);
    7474    }
     
    187187    my $firstsection = 1;
    188188    while (length ($html) > 0) {
    189     if ($html =~ s/^.*?<p\b[^>]*>((<b>|<i>|<u>|\s)*)&lt;&lt;TOC(\d+)&gt;&gt;\s*(.*?)<p\b/<p/i) {
     189    if ($html =~ s/^.*?(?:<p\b[^>]*>)?((<b>|<i>|<u>|\s)*)&lt;&lt;TOC(\d+)&gt;&gt;\s*(.*?)(<p\b|.)?/$5/i) {
    190190        my $toclevel = $3;
    191191        my $title = $4;
    192192        my $sectiontext = "";
    193         if ($html =~ s/^(.*?)(<p\b[^>]*>((<b>|<i>|<u>|\s)*)&lt;&lt;TOC\d+&gt;&gt;)/$2/i) {
     193        if ($html =~ s/^(.*?)((?:<p\b[^>]*>)?((<b>|<i>|<u>|\s)*)&lt;&lt;TOC\d+&gt;&gt;)/$2/i) {
    194194        $sectiontext = $1;
    195195        } else {
Note: See TracChangeset for help on using the changeset viewer.