--- loncom/homework/structuretags.pm 2022/01/01 16:09:10 1.512.2.24.2.1 +++ loncom/homework/structuretags.pm 2023/02/03 17:09:41 1.512.2.24.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.512.2.24.2.1 2022/01/01 16:09:10 raeburn Exp $ +# $Id: structuretags.pm,v 1.512.2.24.2.2 2023/02/03 17:09:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2858,7 +2858,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') {