--- loncom/interface/printout.pl 2004/09/09 15:30:49 1.69
+++ loncom/interface/printout.pl 2004/12/20 21:15:20 1.71
@@ -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.71 2004/12/20 21:15:20 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -32,6 +32,7 @@ use File::Path;
use IO::File;
use Image::Magick;
use Apache::lonhtmlcommon;
+use Apache::lonnet();
use Apache::loncommon;
use Apache::lonlocal;
@@ -67,7 +68,7 @@ END
my $advans_role = $ENV{'cgi.'.$identifier.'role'};
my $number_of_files = $ENV{'cgi.'.$identifier.'numberoffiles'}+1;
my $student_names = $ENV{'cgi.'.$identifier.'studentnames'};
- my $backref = $ENV{'cgi.'.$identifier.'backref'};
+ my $backref = &Apache::lonnet::unescape($ENV{'cgi.'.$identifier.'backref'});
my $adv = $ENV{'request.role.adv'};
@@ -226,7 +227,7 @@ foreach $texfile (@texfile) {
if ($whereitbegins!=-1 and $whereitends!=-1) {
print "With very high probability this error occured in ".substr($body_log_file,$whereitbegins+26,$whereitends-$whereitbegins-26)."
";
}
- print "Here are the error messages in the LaTeX log file
";
+ print "Here are the error messages in the LaTeX log file
"; 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 +237,10 @@ foreach $texfile (@texfile) { $sygnal = 0; } if ($sygnal) { - print "$content_of_file[$i]\n"; if ($advans_role) { print "The link to "; $logfilename=~s/\/home\/httpd//;
"; + print "$content_of_file[$i]"; } } + print "