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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 25 Jul 2002 18:58:09 -0000


sakharuk		Thu Jul 25 14:58:09 2002 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Added a few corrections for Ray's printing.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.41 loncom/interface/lonprintout.pm:1.42
--- loncom/interface/lonprintout.pm:1.41	Tue Jul 23 10:09:45 2002
+++ loncom/interface/lonprintout.pm	Thu Jul 25 14:58:09 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.41 2002/07/23 14:09:45 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.42 2002/07/25 18:58:09 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -297,6 +297,8 @@
     if ($result =~ m/&(\w+|#\d+);/) {
 	$result = &character_chart($result);
     }
+    $result =~ s/(\\end{tabular})\s*\\vskip 0 mm/$1/g;
+    $result =~ s/(\\begin{enumerate})\s*\\noindent/$1/g;
 #-- writing .tex file in prtspool 
     my $temp_file;
     my $filename = "/home/httpd/prtspool/$ENV{'user.name'}_$ENV{'user.domain'}_printout_".time."_".rand(10000000).".tex";
@@ -473,8 +475,8 @@
 #    $result =~ s/®//g;
 #    $result =~ s/¯//g;
 #    $result =~ s/¯//g;
-    $result =~ s/°/\$^\\{\\circ\\}\$/g;
-    $result =~ s/°/\$^\\{\\circ\\}\$/g;
+    $result =~ s/°/\$^{\\circ}\$/g;
+    $result =~ s/°/\$^{\\circ}\$/g;
     $result =~ s/±/\$\\pm\$/g;
     $result =~ s/±/\$\\pm\$/g;
     $result =~ s/²/\$^2\$/g;