223 |
|
|
224 |
|
# -- Now make sure the text context is set for calling routines to |
225 |
|
# -- deal with text portions outside of tags |
226 |
< |
if ( $self->{tagcontext} eq "starttag" ) { |
227 |
< |
push @{$self->{textstack}} , $self->{textcontext}; |
228 |
< |
$self->{textcontext}=$self->{tagname}; |
226 |
> |
if ( ($self->{tagcontext} eq "starttag") ) { |
227 |
> |
if ( $self->{tagcontainer}->definescontext($self->{tagname}) ) { |
228 |
> |
push @{$self->{textstack}} , $self->{textcontext}; |
229 |
> |
$self->{textcontext}=$self->{tagname}; |
230 |
> |
} |
231 |
|
} |
232 |
|
else { |
233 |
|
if ( $#{$self->{textstack}} > -1 ) { |