--- loncom/homework/structuretags.pm 2003/06/25 16:47:47 1.190 +++ loncom/homework/structuretags.pm 2003/06/30 20:30:50 1.192 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.190 2003/06/25 16:47:47 albertel Exp $ +# $Id: structuretags.pm,v 1.192 2003/06/30 20:30:50 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -406,7 +406,7 @@ sub start_problem { } } elsif ($target eq 'tex') { my $startminipage = ''; - if ($ENV{'form.problem_split'} ne 'yes') { + if (not $ENV{'form.problem_split'}=~/yes/) { $startminipage = '\begin{minipage}{\textwidth}'; } my $name= &Apache::lonxml::get_param('name',$parstack,$safeeval); @@ -513,7 +513,7 @@ sub end_problem { $result.=&Apache::lonxml::xmlend(); } elsif ($target eq 'tex') { my $endminipage = ''; - if ($ENV{'form.problem_split'} ne 'yes') { + if (not $ENV{'form.problem_split'}=~/yes/) { $endminipage = '\end{minipage}'; } $result .= '\keephidden{ENDOFPROBLEM}\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}';