Diff for /loncom/xml/londefdef.pm between versions 1.375.2.1 and 1.376

version 1.375.2.1, 2007/10/15 20:00:12 version 1.376, 2007/09/10 19:50:20
Line 578  sub start_body { Line 578  sub start_body {
     'force_register' => 1});      'force_register' => 1});
   
  if ($env{'request.state'} ne 'published') {   if ($env{'request.state'} ne 'published') {
     $currentstring.=&Apache::lonmenu::constspaceform();  
     $currentstring.=(<<EDITBUTTON);  
 <form method="post">  
 <input type="submit" name="editmode" accesskey="e" value="Edit" />  
 </form>  
 <br />  
 EDITBUTTON  
  }   }
  $currentstring.=&Apache::lonxml::message_location();   $currentstring.=&Apache::lonxml::message_location();
    $currentstring.=&Apache::londefdef::edit_controls();
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
  $currentstring = '\begin{document}';     $currentstring = '\begin{document}';  
     }       } 
     return $currentstring;      return $currentstring;
 }  }
   
   sub edit_controls {
       my $result = &Apache::lonmenu::constspaceform();
       $result .= (<<EDITBUTTON);
   <form method="post">
   <input type="submit" name="editmode" accesskey="e" value="Edit" />
   </form>
   <br />
   EDITBUTTON
       return $result;
   }
   
 sub end_body {  sub end_body {
     my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_;      my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_;
     my $currentstring = &end_p(); # Close off unclosed <p>      my $currentstring = &end_p(); # Close off unclosed <p>
Line 4538  sub align_latex_image { Line 4544  sub align_latex_image {
     my ($align, $latex_rendering, $image, $width, $height) = @_;      my ($align, $latex_rendering, $image, $width, $height) = @_;
     my $currentstring;        # The 1/2 wrapped image.      my $currentstring;        # The 1/2 wrapped image.
     my $closure;              # The closure of the wrappage.      my $closure;              # The closure of the wrappage.
   
     # if it's none just return it back  
     if ($latex_rendering eq 'none') {  
  return ($image,'');  
     }  
   
     #    If there's an alignment specification we need to honor it here.      #    If there's an alignment specification we need to honor it here.
     #    For the horizontal alignments, we will also honor the      #    For the horizontal alignments, we will also honor the
     #    value of the latex specfication.  The default is parbox,      #    value of the latex specfication.  The default is parbox,

Removed from v.1.375.2.1  
changed lines
  Added in v.1.376


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