Diff for /loncom/xml/lonxml.pm between versions 1.41 and 1.42

version 1.41, 2000/12/04 22:10:23 version 1.42, 2001/01/03 00:13:22
Line 247  sub increasedepth { Line 247  sub increasedepth {
   if ($Apache::lonxml::depthcounter[$Apache::lonxml::depth]==1) {    if ($Apache::lonxml::depthcounter[$Apache::lonxml::depth]==1) {
     $Apache::lonxml::olddepth=$Apache::lonxml::depth;      $Apache::lonxml::olddepth=$Apache::lonxml::depth;
   }    }
 #  my $curdepth=join('_',@Apache::lonxml::depthcounter);    my $curdepth=join('_',@Apache::lonxml::depthcounter);
 #  print "<br>s $Apache::lonxml::depth : $Apache::lonxml::olddepth : $curdepth : $token->[1]<br>\n";    &Apache::lonxml::debug("s $Apache::lonxml::depth : $Apache::lonxml::olddepth : $curdepth : $token->[1]\n");
 }  }
   
 sub decreasedepth {  sub decreasedepth {
Line 258  sub decreasedepth { Line 258  sub decreasedepth {
     $#Apache::lonxml::depthcounter--;      $#Apache::lonxml::depthcounter--;
     $Apache::lonxml::olddepth=$Apache::lonxml::depth+1;      $Apache::lonxml::olddepth=$Apache::lonxml::depth+1;
   }    }
 #  my $curdepth=join('_',@Apache::lonxml::depthcounter);    my $curdepth=join('_',@Apache::lonxml::depthcounter);
 #  print "<br>e $Apache::lonxml::depth : $Apache::lonxml::olddepth : $token->[1] : $curdepth <br>\n";    &Apache::lonxml::debug("e $Apache::lonxml::depth : $Apache::lonxml::olddepth : $token->[1] : $curdepth\n");
 }  }
   
 sub get_all_text {  sub get_all_text {
Line 304  sub parstring { Line 304  sub parstring {
   my $temp='';    my $temp='';
   map {    map {
     unless ($_=~/\W/) {      unless ($_=~/\W/) {
       $temp .= "my \$$_=\"$token->[2]->{$_}\";"        my $val=$token->[2]->{$_};
         if ($val =~ m/^[\%\@]/) { $val="\\".$val; }
         $temp .= "my \$$_=\"$val\";"
     }      }
   } @{$token->[3]};    } @{$token->[3]};
   return $temp;    return $temp;

Removed from v.1.41  
changed lines
  Added in v.1.42


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>