[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 27 Jan 2006 23:36:48 -0000
albertel Fri Jan 27 18:36:48 2006 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- BUG#4459 printing closed problems in a 'no minpage' env was causing issues
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.331 loncom/homework/structuretags.pm:1.332
--- loncom/homework/structuretags.pm:1.331 Wed Jan 18 15:16:43 2006
+++ loncom/homework/structuretags.pm Fri Jan 27 18:36:48 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.331 2006/01/18 20:16:43 albertel Exp $
+# $Id: structuretags.pm,v 1.332 2006/01/27 23:36:48 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -556,7 +556,7 @@
defined($env{'form.problemtype'})) {
$Apache::lonhomework::type=$env{'form.problemtype'};
}
- &Apache::lonxml::debug("Found this to be of type :$Apache::ltonhomework::type:");
+ &Apache::lonxml::debug("Found this to be of type :$Apache::lonhomework::type:");
}
if ($Apache::lonhomework::type eq '' ) {
my $uri=$env{'request.uri'};
@@ -658,7 +658,10 @@
}
$result.=$msg.'<br />';
} elsif ($target eq 'tex') {
- $result.='\begin{document}\noindent \vskip 1 mm \begin{minipage}{\textwidth}\vskip 0 mm';
+ my $startminipage = ($env{'form.problem_split'}=~/yes/i)? ''
+ : '\begin{minipage}{\textwidth}';
+ $result.='\begin{document}\noindent \vskip 1 mm '.
+ $startminipage.'\vskip 0 mm';
if ($status eq 'UNAVAILABLE') {
$result.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'\vskip 0 mm ';
} else {