--- loncom/homework/structuretags.pm 2004/07/27 23:35:33 1.261 +++ loncom/homework/structuretags.pm 2004/08/10 18:04:22 1.262 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.261 2004/07/27 23:35:33 www Exp $ +# $Id: structuretags.pm,v 1.262 2004/08/10 18:04:22 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -646,14 +646,15 @@ sub end_problem { $endminipage = '\end{minipage}'; } if ($ENV{'form.print_discussions'} eq 'yes') { - $result.=&Apache::lonxml::xmlend(); + $result.=&Apache::lonxml::xmlend($target,$tagstack,$parstack,$parser,$safeeval); $result=~s/<\/html>//; - } - $result .= '\keephidden{ENDOFPROBLEM}\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}'; - if (not $ENV{'request.symb'} =~ m/\.page_/) { - $result .= $endminipage.'\end{document} '; } else { - $result .= ''; + $result .= '\keephidden{ENDOFPROBLEM}\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}'; + if (not $ENV{'request.symb'} =~ m/\.page_/) { + $result .= $endminipage.'\end{document} '; + } else { + $result .= ''; + } } } }