--- loncom/homework/structuretags.pm 2002/09/30 15:10:11 1.119 +++ loncom/homework/structuretags.pm 2002/10/01 20:44:44 1.120 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.119 2002/09/30 15:10:11 sakharuk Exp $ +# $Id: structuretags.pm,v 1.120 2002/10/01 20:44:44 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -349,7 +349,7 @@ sub start_problem { if(not $duedate=~m/1969/) { $result .= '\begin{document} \noindent\textit{Due date: '.$duedate.'} \vskip 1 mm\noindent \begin{minipage}{\textwidth}'; } else { - $result .= '\begin{document} \noindent \vskip 1 mm \begin{minipage}{\textwidth}'; + $result .= '\begin{document} \noindent \vskip 1 mm \noindent\begin{minipage}{\textwidth}'; } } else { $result .= '\vskip 1mm\textit{Due date: '.$duedate.'} \\\\\\\\'; @@ -664,6 +664,7 @@ sub end_part { 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); } + if ($Apache::lonhomework::type eq 'exam') {$gradestatus='';} return $gradestatus; } return '';