ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/Switcher.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/Switcher.pm (file contents):
Revision 1.12 by williamc, Tue Nov 23 17:20:40 1999 UTC vs.
Revision 1.13 by williamc, Wed Mar 1 11:48:11 2000 UTC

# Line 212 | Line 212 | sub _closetag {
212          $self->_closelabel();
213          
214          # -- Call the associated tag function if appropriate
215 <        $tagroutine=$self->{tagname}."_".$self->{tagcontext};
216 <        $self->_calltag($tagroutine, $self->{tagname},
215 >        if ( defined $self->{tagname} ) {
216 >         $tagroutine=$self->{tagname}."_".$self->{tagcontext};
217 >         $self->_calltag($tagroutine, $self->{tagname},
218                                                          $self->{tagvar});
219 <        #print "\nDebug : Closing Tag $tagroutine\n";
219 >         #print "\nDebug : Closing Tag $tagroutine\n";
220  
221 <        # -- Now make sure the text context is set for calling routines to
222 <        # -- deal with text portions outside of tags
223 <        if ( $self->{tagcontext} eq "starttag" ) {
221 >         # -- Now make sure the text context is set for calling routines to
222 >         # -- deal with text portions outside of tags
223 >         if ( $self->{tagcontext} eq "starttag" ) {
224            push @{$self->{textstack}} , $self->{textcontext};
225            $self->{textcontext}=$self->{tagname};
226 <        }
227 <        else {
226 >         }
227 >         else {
228            if ( $#{$self->{textstack}} > -1 ) {
229              if ( $self->{textcontext} eq $self->{tagname} ) {  
230                 $self->{textcontext}=pop @{$self->{textstack}};
# Line 238 | Line 239 | sub _closetag {
239               print "Warning : Unmatched </...> tag on line ".
240                                          $self->line()."\n";    
241            }
242 +         }
243          }
244          # Reset context back to text
245          $self->{tagcontext}="text";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines