--- loncom/interface/lonprintout.pm 2003/06/24 20:54:06 1.197 +++ loncom/interface/lonprintout.pm 2003/06/25 18:34:14 1.198 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.197 2003/06/24 20:54:06 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.198 2003/06/25 18:34:14 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -602,8 +602,8 @@ ENDPART $selectionmade = 4; } $form{'symb'}=$master_seq[$i]; - $master_seq[$i]=~/\/([^\/]+)\.sequence_/; - my $assignment=' '.$1.' '; + $master_seq[$i]=~/(.*)___\d*___/; + my $assignment=&Apache::lonnet::gettitle($1); #tittle of the assignment which contains this problem #&Apache::lonnet::logthis("Trying to get $urlp with symb $master_seq[$i]"); my $texversion=&Apache::lonnet::ssi($urlp,%form); if ($urlp=~/\.page$/) { @@ -625,7 +625,7 @@ ENDPART $texversion=~s/(\\keephidden{ENDOFPROBLEM})/$answer$1/; } # $result .= $texversion; - if (($selectionmade == 4) and ($assignment ne $prevassignment) and ($i>1)) { + if (($selectionmade == 4) and ($assignment ne $prevassignment) and ($i>=1)) { my $name = &get_name(); if ($name =~ /^\s*$/) { $name=&Apache::lonxml::latex_special_symbols($ENV{'user.name'},undef,