[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 17 Jul 2006 13:54:36 -0000


albertel		Mon Jul 17 09:54:36 2006 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - disable page margin code in the 2 column case
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.461 loncom/interface/lonprintout.pm:1.462
--- loncom/interface/lonprintout.pm:1.461	Mon Jul 17 06:41:30 2006
+++ loncom/interface/lonprintout.pm	Mon Jul 17 09:54:36 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.461 2006/07/17 10:41:30 foxr Exp $
+# $Id: lonprintout.pm,v 1.462 2006/07/17 13:54:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1766,12 +1766,12 @@
 			       $selectionmade, 
 			       $helper->{'VARS'}->{'ANSWER_TYPE'});
     }
-#    if ($numberofcolumns == 1) {
+    if ($numberofcolumns == 1) {
 	$result =~ s/\\textwidth\s*=\s*-?\d*\.?\d*\s*(cm|mm|in)/\\textwidth= $helper->{'VARS'}->{'pagesize.width'} $helper->{'VARS'}->{'pagesize.widthunit'} /;
 	$result =~ s/\\textheight\s*=?\s*-?\d*\.?\d*\s*(cm|mm|in)/\\textheight $helper->{'VARS'}->{'pagesize.height'} $helper->{'VARS'}->{'pagesize.heightunit'} /;
 	$result =~ s/\\evensidemargin\s*=\s*-?\d*\.?\d*\s*(cm|mm|in)/\\evensidemargin= $helper->{'VARS'}->{'pagesize.lmargin'} $helper->{'VARS'}->{'pagesize.lmarginunit'} /;
 	$result =~ s/\\oddsidemargin\s*=\s*-?\d*\.?\d*\s*(cm|mm|in)/\\oddsidemargin= $helper->{'VARS'}->{'pagesize.lmargin'} $helper->{'VARS'}->{'pagesize.lmarginunit'} /;
-#    }
+    }
 
 #-- writing .tex file in prtspool 
     my $temp_file;
@@ -3044,9 +3044,9 @@
     my $helper = Apache::lonhelper::getHelper();
 
     my $format = $helper->{VARS}->{$self->{'formatvar'}};
-#    if (substr($format, 2, 1) ne '1') {
-#        $helper->changeState($self->{NEXTSTATE});
-#    }
+    if (substr($format, 2, 1) ne '1') {
+        $helper->changeState($self->{NEXTSTATE});
+    }
    
     return 1;
 }