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

raeburn raeburn@source.lon-capa.org
Wed, 04 Aug 2010 22:17:14 -0000


raeburn		Wed Aug  4 22:17:14 2010 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - Bugs 6300 and 6301.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.582 loncom/interface/lonprintout.pm:1.583
--- loncom/interface/lonprintout.pm:1.582	Tue Jul 13 00:16:28 2010
+++ loncom/interface/lonprintout.pm	Wed Aug  4 22:17:14 2010
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.582 2010/07/13 00:16:28 raeburn Exp $
+# $Id: lonprintout.pm,v 1.583 2010/08/04 22:17:14 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3077,7 +3077,9 @@
 	if (&Apache::loncommon::connection_aborted($r)) { last; }
     }
 
-
+    if ($syllabus_first) {
+        $current_output =~ s/\\\\ Last updated:/Last updated:/
+    }
     my $courseidinfo = &get_course();
     my $currentassignment=&Apache::lonxml::latex_special_symbols($helper->{VARS}->{'assignment'},'header');
     my $header_line =
@@ -3086,11 +3088,8 @@
     my $header_start = ($columns_in_format == 1) ? '\lhead'
 	                                         : '\fancyhead[LO]';
     $header_line = $header_start.'{'.$header_line.'}';
-    if ($current_output=~/\\documentclass/ && (!$syllabus_first)) {
+    if ($current_output=~/\\documentclass/) {
 	$current_output =~ s/\\begin{document}/\\setlength{\\topmargin}{1cm} \\begin{document}\\noindent\\parbox{\\minipagewidth}{\\noindent$header_line$namepostfix}\\vskip 5 mm /;
-    } elsif ($syllabus_first) {
-
-	$current_output =~ s/\\\\ Last updated:/Last updated:/
     } else {
 	my $blankpages = 
 	    '\clearpage\strut\clearpage'x$helper->{'VARS'}->{'EMPTY_PAGES'};