[LON-CAPA-cvs] cvs: loncom /interface printout.pl

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 13 Nov 2004 08:25:41 -0000


albertel		Sat Nov 13 03:25:41 2004 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  - using <pre> on the Latex error messages since, well they are
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.69 loncom/interface/printout.pl:1.70
--- loncom/interface/printout.pl:1.69	Thu Sep  9 11:30:49 2004
+++ loncom/interface/printout.pl	Sat Nov 13 03:25:41 2004
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.69 2004/09/09 15:30:49 matthew Exp $
+# $Id: printout.pl,v 1.70 2004/11/13 08:25:41 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -226,7 +226,7 @@
 	  if ($whereitbegins!=-1 and $whereitends!=-1) {
  	      print "With very high probability this error occured in ".substr($body_log_file,$whereitbegins+26,$whereitends-$whereitbegins-26)."<br /><br />";
 	  }
-	  print "Here are the error messages in the LaTeX log file</br><br />";
+	  print "Here are the error messages in the LaTeX log file</br><br /><pre>";
 	  my $sygnal = 0;
 	  for (my $i=0;$i<=$#content_of_file;$i++) {
 	      if ($content_of_file[$i]=~m/^Runaway argument?/ or $content_of_file[$i]=~m/^!/) {
@@ -236,9 +236,10 @@
 		  $sygnal = 0;
 	      } 
 	      if ($sygnal) {
-		  print "$content_of_file[$i]<br />";
+		  print "$content_of_file[$i]";
 	      }  
 	  }
+	  print "</pre>\n";
           if ($advans_role) {  
               print "<b><big>The link to ";
               $logfilename=~s/\/home\/httpd//;