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

Comparing COMP/SCRAM/src/Utilities/Switcher.pm (file contents):
Revision 1.5 by williamc, Thu Jun 17 13:00:26 1999 UTC vs.
Revision 1.7 by williamc, Thu Jun 17 15:10:01 1999 UTC

# Line 291 | Line 291 | sub _quotetest {
291           if ( $char eq $self->{openquote} ) {
292             $self->{quotes}=0;
293           }
294 +         else {
295 +           $self->_putstore($char);
296 +         }
297          }
298          # --- Unquoted Context
299          elsif ( (($char eq "\"") || ($char eq "\'") || ($char eq "\`")) ) {
# Line 309 | Line 312 | sub _labeltest {
312          my $char=shift;
313  
314          # Spaces are markers between tags
315 <        if ( $char eq " " ) {
315 >        if ( ($char eq " ") || ($char eq "\n") || ($char eq "\t")) {
316            $self->_closelabel();
317          }
318          # Check for a change in label status
# Line 363 | Line 366 | sub _resetstore {
366          my $self=shift;
367          $self->{stringbuff}="";
368   }
366
367
368 # ----------------------------------------------------------
369 sub context ($key) {
370        my $self=shift;
371        my $key=shift;
372        $key=~tr[A-Z][a-z];
373        return ( ${$self->{ContextHash}}{$key} );
374 }
375

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines