--- loncom/homework/structuretags.pm 2004/08/10 18:04:22 1.262 +++ loncom/homework/structuretags.pm 2004/08/25 19:16:25 1.265 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.262 2004/08/10 18:04:22 sakharuk Exp $ +# $Id: structuretags.pm,v 1.265 2004/08/25 19:16:25 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -646,7 +646,7 @@ sub end_problem { $endminipage = '\end{minipage}'; } if ($ENV{'form.print_discussions'} eq 'yes') { - $result.=&Apache::lonxml::xmlend($target,$tagstack,$parstack,$parser,$safeeval); + $result.=&Apache::lonxml::xmlend($target,$parser); $result=~s/<\/html>//; } else { $result .= '\keephidden{ENDOFPROBLEM}\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}'; @@ -1085,7 +1085,11 @@ sub start_part { } else { if ($target eq 'tex') { if (not $ENV{'form.problem_split'}=~/yes/) { - $result.='\noindent \end{minipage}\vskip 0 mm \noindent \begin{minipage}{\textwidth}\noindent'; + if ($$tagstack[-2] eq 'td') { + $result.='\vskip 0 mm \noindent \begin{minipage}{\textwidth}\noindent'; + } else { + $result.='\noindent \end{minipage}\vskip 0 mm \noindent \begin{minipage}{\textwidth}\noindent'; + } } my $weight = &Apache::lonnet::EXT("resource.$id.weight"); my $allkeys=&Apache::lonnet::metadata($ENV{'request.uri'},'packages'); @@ -1145,6 +1149,7 @@ sub end_part { $gradestatus=''; } $result=$gradestatus; + if ($$tagstack[-2] eq 'td' and $target eq 'tex') {$result.='\end{minipage}';} } elsif ($target eq 'edit') { $result=&Apache::edit::end_table(); }