--- loncom/homework/structuretags.pm 2002/10/01 21:04:34 1.121 +++ loncom/homework/structuretags.pm 2002/10/03 13:38:02 1.123 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.121 2002/10/01 21:04:34 sakharuk Exp $ +# $Id: structuretags.pm,v 1.123 2002/10/03 13:38:02 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -389,9 +389,7 @@ sub end_problem { $status ne 'UNCHECKEDOUT') { # if part is zero, no s existed, so we need show the current # grading status - my $gradestatus = &Apache::inputtags::gradestatus($Apache::inputtags::part); - #FIXME this is ugly we should just generate tex in inputtags - if ($target eq 'tex') { $gradestatus=&html_to_tex($gradestatus); } + my $gradestatus = &Apache::inputtags::gradestatus($Apache::inputtags::part,$target); if ($Apache::lonhomework::type ne 'exam') {$result.= $gradestatus;} } if ( @@ -629,7 +627,7 @@ sub start_part { } } else { if ($target eq 'tex') { - $result='\vskip 0 mm'; + $result='\end{minipage}\vskip 0 mm\begin{minipage}{\textwidth}'; } } }