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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 21 Aug 2003 15:50:35 -0000


sakharuk		Thu Aug 21 11:50:35 2003 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Bug 2062 (Cannot Print HW for a Class due to # symbol) is fixed. The only symbol which is dangerous now is "\". Continue to work with it.  
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.221 loncom/interface/lonprintout.pm:1.222
--- loncom/interface/lonprintout.pm:1.221	Wed Aug 20 14:34:14 2003
+++ loncom/interface/lonprintout.pm	Thu Aug 21 11:50:35 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.221 2003/08/20 18:34:14 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.222 2003/08/21 15:50:35 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -483,7 +483,7 @@
 sub page_format_transformation {
     my ($papersize,$layout,$numberofcolumns,$choice,$text,$assignment,$tableofcontents,$indexlist) = @_; 
     my ($textwidth,$textheight,$oddoffset,$evenoffset,$topmargin);
-    $assignment=~s/_/ /g;
+    $assignment=&Apache::lonxml::latex_special_symbols($assignment,'header');
     if ($numberofcolumns != 1) {
 	($textwidth,$textheight,$oddoffset,$evenoffset,$topmargin) = &page_format($papersize,$layout,$numberofcolumns,$topmargin);
     } else {
@@ -733,7 +733,7 @@
 	    }
 	    $form{'symb'}=$master_seq[$i];
 	    $master_seq[$i]=~/(.*)___\d*___/;
-	    my $assignment=&Apache::lonnet::gettitle($1); #tittle of the assignment which contains this problem
+	    my $assignment=&Apache::lonxml::latex_special_symbols(&Apache::lonnet::gettitle($1),'header'); #tittle of the assignment which contains this problem
 	    #&Apache::lonnet::logthis("Trying to get $urlp with symb $master_seq[$i]");
 	    my $texversion=&Apache::lonnet::ssi($urlp,%form);
 	    if ($urlp=~/\.page$/) {