Diff for /rat/lonpage.pm between versions 1.44 and 1.46

version 1.44, 2002/08/12 18:21:42 version 1.46, 2002/09/16 14:23:02
Line 171  sub handler { Line 171  sub handler {
   
                   @rows=();                    @rows=();
   
                   &tracetable(0,$firstres,'&'.$lastres.'&');                    &tracetable(0,$firstres,'&');
                   if ($hash{'src_'.$lastres}) {  
                      my $brepriv=  
                         &Apache::lonnet::allowed('bre',$hash{'src_'.$lastres});  
                      if (($brepriv eq '2') || ($brepriv eq 'F')) {  
                         $rows[$#rows+1]=''.$lastres;  
      }  
   }  
   
 # ------------------------------------------------------------ Add to symb list  # ------------------------------------------------------------ Add to symb list
   
Line 246  sub handler { Line 239  sub handler {
                                }                                 }
       }        }
                               my $output=Apache::lonnet::ssi($src,%posthash);                                my $output=Apache::lonnet::ssi($src,%posthash);
                                 if ($target eq 'tex') {
     $output =~ s/^([^&]+)\\begin{document}//;
     $output =~ s/\\end{document}//;
     $output = '\parbox{\minipagewidth}{ '.$output.' }';
                                     #some additional cleanup necessary for LateX (due to limitations of table environment 
     $output =~ s/(\\vskip\s*\d+mm)\s*(\\\\)+/$1/g;
         }
                               my $parser=HTML::TokeParser->new(\$output);                                my $parser=HTML::TokeParser->new(\$output);
                               my $token;                                my $token;
                               my $thisdir=$src;                                my $thisdir=$src;

Removed from v.1.44  
changed lines
  Added in v.1.46


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