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

raeburn raeburn at source.lon-capa.org
Wed Mar 11 00:15:48 EDT 2015


raeburn		Wed Mar 11 04:15:48 2015 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonprintout.pm 
  Log:
  - For 2.11
    Backport 1.644, 1.645
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.627.2.13 loncom/interface/lonprintout.pm:1.627.2.14
--- loncom/interface/lonprintout.pm:1.627.2.13	Sun Sep 21 16:32:26 2014
+++ loncom/interface/lonprintout.pm	Wed Mar 11 04:15:47 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.627.2.13 2014/09/21 16:32:26 raeburn Exp $
+# $Id: lonprintout.pm,v 1.627.2.14 2015/03/11 04:15:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2933,7 +2933,6 @@
 
 	&Apache::lonxml::clear_problem_counter();
 
-	my $pbreakresources = keys %page_breaks;
 	for (my $i=0;$i<=$#master_seq;$i++) {
 
 	    &Apache::lonenc::reset_enc();
@@ -3290,6 +3289,8 @@
 		 $moreenv{'CODE'}=&get_CODE(\%allcodes,$i,$seed,$code_length,
 					    $code_type);
 	     }
+             $code_name =~ s/^\s+//;
+             $code_name =~ s/\s+$//;
 	     if ($code_name) {
 		 &Apache::lonnet::put('CODEs',
 				      {




More information about the LON-CAPA-cvs mailing list