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.13.2.2 by williamc, Fri Apr 7 11:14:08 2000 UTC vs.
Revision 1.13.2.4 by williamc, Fri May 12 10:29:43 2000 UTC

# Line 171 | Line 171 | sub _nextchar() {
171          my $self=shift;
172          my $char;
173          $char=substr($self->{currentline},$self->{stringpos}++,1);
174 <        print "Debug : Fetching character $char\n";
174 >        #print "Debug : Fetching character $char\n";
175  
176          # Keep a record for any stream processes
177          $self->{streamstore}=$self->{streamstore}.$char;
# Line 219 | Line 219 | sub _closetag {
219           $tagroutine=$self->{tagname}."_".$self->{tagcontext};
220           $self->_calltag($tagroutine, $self->{tagname},
221                                                          $self->{tagvar});
222 <         print "\nDebug : Closing Tag $tagroutine\n";
222 >         #print "\nDebug : Closing Tag $tagroutine\n";
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 ) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines