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

raeburn raeburn at source.lon-capa.org
Wed Aug 10 12:06:04 EDT 2016


raeburn		Wed Aug 10 16:06:04 2016 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - Eliminate "Unescaped left brace in regex is deprecated," warnings
    in error_log with perl 5.22 (Ubuntu 16 LTS).
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.649 loncom/interface/lonprintout.pm:1.650
--- loncom/interface/lonprintout.pm:1.649	Tue Aug  9 23:43:48 2016
+++ loncom/interface/lonprintout.pm	Wed Aug 10 16:06:03 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.649 2016/08/09 23:43:48 raeburn Exp $
+# $Id: lonprintout.pm,v 1.650 2016/08/10 16:06:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1976,8 +1976,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;
+    $result =~ s/(\\end\{tabular})\s*\\vskip 0 mm/$1/g;
+    $result =~ s/(\\begin\{enumerate})\s*\\noindent/$1/g;
     return $result;
 }
 
@@ -2586,7 +2586,7 @@
 	    $result .= $texversion;
 	}
     }
-    if ($helper->{VARS}->{'construction'} eq '1') {$result=~s/(\\begin{document})/$1 \\fbox\{RANDOM SEED IS $rndseed\} /;}
+    if ($helper->{VARS}->{'construction'} eq '1') {$result=~s/(\\begin\{document})/$1 \\fbox\{RANDOM SEED IS $rndseed\} /;}
     return $result;
 }
 




More information about the LON-CAPA-cvs mailing list