[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 26 Jun 2006 21:20:38 -0000


foxr		Mon Jun 26 17:20:38 2006 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Try to escape names to fix defect 4832... need to test more thoroughly.. but
  at least no server crashes and normal names seem to work.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.443 loncom/interface/lonprintout.pm:1.444
--- loncom/interface/lonprintout.pm:1.443	Mon Jun 19 17:40:29 2006
+++ loncom/interface/lonprintout.pm	Mon Jun 26 17:20:37 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.443 2006/06/19 21:40:29 foxr Exp $
+# $Id: lonprintout.pm,v 1.444 2006/06/26 21:20:37 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1802,6 +1802,10 @@
 	$namepostfix="\\\\Name: ";
 	$fullname = "CODE - ".$moreenv->{'CODE'};
     }
+    #  Fullname may have special latex characters that need \ prefixing:
+    #
+    $fullname = escape_LaTeX($fullname);
+
     my $i           = 0;
     #goes through all resources, checks if they are available for 
     #current student, and produces output