--- loncom/homework/structuretags.pm 2020/09/28 00:10:28 1.571 +++ loncom/homework/structuretags.pm 2022/04/01 20:17:43 1.572 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.571 2020/09/28 00:10:28 raeburn Exp $ +# $Id: structuretags.pm,v 1.572 2022/04/01 20:17:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3107,7 +3107,11 @@ sub end_part { $gradestatus=''; } $result.=$gradestatus; - if ($$tagstack[-2] eq 'td' and $target eq 'tex') {$result.='\end{minipage}';} + if ($$tagstack[-2] eq 'td' and $target eq 'tex') { + if (not $env{'form.problem_split'}=~/yes/) { + $result.='\end{minipage}'; + } + } } elsif ($target eq 'edit') { $result.=&Apache::edit::end_table(); } elsif ($target eq 'modified') {