--- loncom/homework/optionresponse.pm 2006/03/15 17:10:49 1.135 +++ loncom/homework/optionresponse.pm 2007/02/22 01:25:31 1.137 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # option list style responses # -# $Id: optionresponse.pm,v 1.135 2006/03/15 17:10:49 albertel Exp $ +# $Id: optionresponse.pm,v 1.137 2007/02/22 01:25:31 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -183,8 +183,10 @@ sub end_foilgroup { $safeeval,'-2'); if ($target eq 'web' || $target eq 'tex') { $result.=&displayfoils($target,$max,$randomize,$TeXlayout,@opt); + $Apache::lonxml::post_evaluate=0; } elsif ( $target eq 'answer') { $result.=&displayanswers($max,$randomize,@opt); + } elsif ( $target eq 'analyze') { my @shown = &whichfoils($max,$randomize); &Apache::response::analyze_store_foilgroup(\@shown, @@ -448,7 +450,7 @@ sub displayfoils { $texoptionlist = &optionlist_correction($TeXlayout,@opt); } if ($text=~//) { - $text=~s|| \\makebox\[0\.3in\]\[b\]\{\\hrulefill\} |; + $text=~s|| \\makebox\[0\.3in\]\[b\]\{\\hrulefill\} |g; } if ($text=~m/\\item /) { @@ -688,14 +690,14 @@ sub end_foil { sub start_drawoptionlist { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; - if ($target ne 'meta') { + if (($target ne 'meta') && ($target ne 'answer')) { return $token->[4]; } } sub end_drawoptionlist { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; - if ($target ne 'meta') { + if (($target ne 'meta') && ($target ne 'answer')) { return $token->[2]; } }