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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 16 Sep 2005 19:36:10 -0000


albertel		Fri Sep 16 15:36:10 2005 EDT

  Modified files:              
    /loncom/interface	printout.pl 
  Log:
  splitting up the resources list into multiple lines
  
  
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.90 loncom/interface/printout.pl:1.91
--- loncom/interface/printout.pl:1.90	Mon Sep 12 06:16:52 2005
+++ loncom/interface/printout.pl	Fri Sep 16 15:36:08 2005
@@ -121,7 +121,9 @@
 	    my $subject  = "Error [$badurl] Print failed for $user".'@'.$domain;
 	    my $message .= "Print failed to render LaTeX for $user".'@'."$domain\n";
 	    $message    .= "  User was attempting to print: \n";
-	    $message    .= "       $resources\n";
+	    foreach my $resource (split(/:/,$resources)) {
+		$message    .= "       $resource\n";
+	    }
 	    $message    .= "--------------------LaTeX logfile:------------ \n";
 	    $message    .= $logfile;
 	    $message    .= "-----------------LaTeX source file: ------------\n";