[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 22 Jun 2007 00:57:38 -0000


albertel		Thu Jun 21 20:57:38 2007 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - some of BUG#3585, minipage wasn't getting started when not allowed to split problems over multiple pages
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.380 loncom/homework/structuretags.pm:1.381
--- loncom/homework/structuretags.pm:1.380	Mon Jun 11 16:52:29 2007
+++ loncom/homework/structuretags.pm	Thu Jun 21 20:57:38 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.380 2007/06/11 20:52:29 albertel Exp $
+# $Id: structuretags.pm,v 1.381 2007/06/22 00:57:38 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -880,14 +880,14 @@
 		    if ($Apache::lonhomework::type eq 'exam' and $allow_print_points==1) { $frontmatter .= '\fbox{\textit{'.$weight.' pt}}';}
 		}
 	    } else {
-		$frontmatter .= '\vskip 1mm\textit{Due date: '.$duedate.'} \\\\\\\\';
+		$frontmatter .= '\vskip 1mm\textit{Due date: '.$duedate.'} \\\\\\\\'.$startminipage;
 	    }
 	} else {
 	    if (not $env{'request.symb'} =~ m/\.page_/) {
 		$frontmatter .= $begin_doc.$toc_line;
 		if (($Apache::lonhomework::type eq 'exam') and ($allow_print_points==1)) { $frontmatter .= '\fbox{\textit{'.$weight.' pt}}';}
 	    } else {
-		$frontmatter .= '\vskip 1mm \\\\\\\\';
+		$frontmatter .= '\vskip 1mm \\\\\\\\'.$startminipage;
 	    }
 	}
 	$result =~ s/INSERTTEXFRONTMATTERHERE/$frontmatter/;