--- loncom/interface/lonprintout.pm 2014/09/21 16:26:20 1.643 +++ loncom/interface/lonprintout.pm 2015/02/10 14:03:47 1.645 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.643 2014/09/21 16:26:20 raeburn Exp $ +# $Id: lonprintout.pm,v 1.645 2015/02/10 14:03:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2928,7 +2928,6 @@ ENDPART &Apache::lonxml::clear_problem_counter(); - my $pbreakresources = keys %page_breaks; for (my $i=0;$i<=$#master_seq;$i++) { &Apache::lonenc::reset_enc(); @@ -3284,6 +3283,8 @@ ENDPART $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', {