--- loncom/homework/rankresponse.pm 2004/03/08 23:23:04 1.30 +++ loncom/homework/rankresponse.pm 2004/04/05 19:52:25 1.32 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # rank style response # -# $Id: rankresponse.pm,v 1.30 2004/03/08 23:23:04 albertel Exp $ +# $Id: rankresponse.pm,v 1.32 2004/04/05 19:52:25 sakharuk Exp $ # Copyright Michigan State University Board of Trustees # # This file is part of the LearningOnline Network with CAPA (LON-CAPA). @@ -299,7 +299,7 @@ sub displayfoils { } else { if ($Apache::lonhomework::type eq 'exam') { $result.='\vskip 0 mm '.$text.' \vskip -3 mm '."\n"; - $result.='\vskip -5 mm\begin{enumerate}\item[\textbf{'.$internal_counter.'}.]\parbox{\textwidth - 5 mm}{'.&Apache::optionresponse::bubbles(\@alp,\@whichopt).'}\end{enumerate} \vskip -5 mm \strut '; + $result.='\vskip -5 mm\begin{enumerate}\item[\textbf{'.$internal_counter.'}.]\parbox{\textwidth - 5 mm}{\vskip 2 mm '.&Apache::optionresponse::bubbles(\@alp,\@whichopt).'}\end{enumerate} \vskip -5 mm \strut '; $internal_counter++; } else { $result.=' \vskip 0mm \framebox[5 mm][s]{\tiny\strut} '.$text."\n"; @@ -415,6 +415,7 @@ sub end_foil { if (defined($Apache::response::foilnames{$name})) { &Apache::lonxml::error(&mt("Foil name [_1] appears more than once. Foil names need to be unique.",$name)); } + $Apache::response::foilnames{$name}++; my $location =&Apache::lonxml::get_param('location',$parstack, $safeeval); if ( $Apache::rankresponse::conceptgroup