--- loncom/homework/structuretags.pm 2002/09/26 20:45:00 1.118 +++ loncom/homework/structuretags.pm 2002/09/30 15:10:11 1.119 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.118 2002/09/26 20:45:00 albertel Exp $ +# $Id: structuretags.pm,v 1.119 2002/09/30 15:10:11 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -347,7 +347,7 @@ sub start_problem { print $temp_file "$duedate\n"; if (not $ENV{'request.symb'} =~ m/\.page_/) { if(not $duedate=~m/1969/) { - $result .= '\begin{document} \noindent\textit{Due date: '.$duedate.'} \vskip 1 mm \begin{minipage}{\textwidth}'; + $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}'; } @@ -356,7 +356,7 @@ sub start_problem { } } else { if (not $ENV{'request.symb'} =~ m/\.page_/) { - $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 \\\\\\\\'; } @@ -392,7 +392,7 @@ sub end_problem { 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); } - $result.= $gradestatus; + if ($Apache::lonhomework::type ne 'exam') {$result.= $gradestatus;} } if ( (($target eq 'web') && ($ENV{'request.state'} ne 'construct')) ||