Changeset 321 for trunk/gsdl/perllib/plugins/HBPlug.pm
- Timestamp:
- 1999-07-01T11:55:26+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/HBPlug.pm
r318 r321 70 70 if ($line =~ /<font [^>]*?face\s*=\s*\"?(\w+)\"?/i) { 71 71 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" 73 73 if ($font !~ /^arial$/i); 74 74 } … … 187 187 my $firstsection = 1; 188 188 while (length ($html) > 0) { 189 if ($html =~ s/^.*? <p\b[^>]*>((<b>|<i>|<u>|\s)*)<<TOC(\d+)>>\s*(.*?)<p\b/<p/i) {189 if ($html =~ s/^.*?(?:<p\b[^>]*>)?((<b>|<i>|<u>|\s)*)<<TOC(\d+)>>\s*(.*?)(<p\b|.)?/$5/i) { 190 190 my $toclevel = $3; 191 191 my $title = $4; 192 192 my $sectiontext = ""; 193 if ($html =~ s/^(.*?)( <p\b[^>]*>((<b>|<i>|<u>|\s)*)<<TOC\d+>>)/$2/i) {193 if ($html =~ s/^(.*?)((?:<p\b[^>]*>)?((<b>|<i>|<u>|\s)*)<<TOC\d+>>)/$2/i) { 194 194 $sectiontext = $1; 195 195 } else {
Note:
See TracChangeset
for help on using the changeset viewer.