Changeset 2695 for trunk/gsdl
- Timestamp:
- 2001-08-13T11:42:33+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/HTMLPlug.pm
r2564 r2695 168 168 # trap images 169 169 170 $$textref =~ s/(<img[^>]*?src\s*=\s*\"?)([^\">\s]+)(\"?[^>]*>)/ 170 # allow spaces if inside quotes - jrm21 171 $$textref =~ s/(<img[^>]*?src\s*=\s*)(\"[^\"]+\"|[^\s>]+)([^>]*>)/ 171 172 $self->replace_images ($1, $2, $3, $base_dir, $file, $doc_obj, $cursection)/isge; 172 173 … … 184 185 my ($front, $link, $back, $base_dir, 185 186 $file, $doc_obj, $section) = @_; 186 187 # remove quotes from link at start and end if necessary 188 if ($link=~/^\"/) { 189 $link=~s/^\"//;$link=~s/\"$//; 190 $front.='"'; 191 $back="\"$back"; 192 } 193 187 194 $link =~ s/\n/ /g; 188 195 my ($href, $hash_part, $rl) = $self->format_link ($link, $base_dir, $file);
Note:
See TracChangeset
for help on using the changeset viewer.