--- loncom/homework/structuretags.pm 2004/07/03 20:52:19 1.260 +++ 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.260 2004/07/03 20:52:19 albertel Exp $ +# $Id: structuretags.pm,v 1.262 2004/08/10 18:04:22 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -83,7 +83,8 @@ sub page_start { $result=&Apache::londefdef::start_html($target,$token,$tagstack, $parstack,$parser,$safeeval); $head_tag_start=''.&Apache::lonmenu::registerurl(undef,$target). - &Apache::lonhtmlcommon::htmlareaheaders(); + &Apache::lonhtmlcommon::htmlareaheaders(). + &Apache::lonhtmlcommon::spellheader(); } my $body_tag_start; if (!defined($found{'body'})) { @@ -645,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 .= ''; + } } } }