--- loncom/interface/lonprintout.pm 2013/07/24 18:21:39 1.635 +++ loncom/interface/lonprintout.pm 2014/01/20 01:26:50 1.637 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.635 2013/07/24 18:21:39 bisitz Exp $ +# $Id: lonprintout.pm,v 1.637 2014/01/20 01:26:50 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4055,7 +4055,7 @@ sub printHelper { &Apache::lonenc::check_encrypt(&Apache::lonnet::clutter($url)); my $navmap = Apache::lonnavmaps::navmap->new(); my $res = $navmap->getBySymb($symb); - $res_printable = $res->resprintable() | $userCanPrint; #printability in course context + $res_printable = $res->resprintable() || $userCanPrint; #printability in course context ($res_printstartdate, $res_printenddate) = &get_print_dates($res); ($course_open, $course_close) = &course_print_dates($res); ($map_open, $map_close) = &map_print_dates($res); @@ -4449,6 +4449,7 @@ ALL_PROBLEMS my @lines = &Apache::grades::get_scantronformat_file(); my $codechoice=''; foreach my $line (@lines) { + next if (($line =~ /^\#/) || ($line eq '')); my ($name,$description,$code_type,$code_length)= (split(/:/,$line))[0,1,2,4]; if ($code_length > 0 &&