Changeset 2995 for trunk/gsdl
- Timestamp:
- 2002-02-24T10:09:50+13:00 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/HTMLPlug.pm
r2975 r2995 160 160 if ($self->{'description_tags'}) { 161 161 162 # remove the html header - note that doing this here means any 163 # sections defined within the header will be lost (so all <Section> 164 # tags must appear within the body of the HTML) 165 $$textref =~ s/^.*?<body[^>]*>//is; 166 $$textref =~ s/(<\/body[^>]*>|<\/html[^>]*>)//isg; 167 162 168 my $opencom = '(?:<!--|<!(?:—|—|--))'; 163 169 my $closecom = '(?:-->|(?:—|—|--)>)'; … … 233 239 234 240 } else { 241 242 # remove header and footer 243 if (!$self->{'keep_head'} || $self->{'description_tags'}) { 244 $$textref =~ s/^.*?<body[^>]*>//is; 245 $$textref =~ s/(<\/body[^>]*>|<\/html[^>]*>)//isg; 246 } 247 235 248 # single section document 236 249 $self->process_section($textref, $base_dir, $file, $doc_obj, $cursection); … … 245 258 my $self = shift (@_); 246 259 my ($textref, $base_dir, $file, $doc_obj, $cursection) = @_; 247 248 # remove header and footer249 if (!$self->{'keep_head'} || $self->{'description_tags'}) {250 $$textref =~ s/^.*?<body[^>]*>//is;251 $$textref =~ s/(<\/body[^>]*>|<\/html[^>]*>)//isg;252 }253 260 254 261 # trap links
Note:
See TracChangeset
for help on using the changeset viewer.