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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 25 Jun 2002 15:01:49 -0000


sakharuk		Tue Jun 25 11:01:49 2002 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  plus the same as earlier for the page
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.98 loncom/homework/structuretags.pm:1.99
--- loncom/homework/structuretags.pm:1.98	Tue Jun 25 10:50:53 2002
+++ loncom/homework/structuretags.pm	Tue Jun 25 11:01:49 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.98 2002/06/25 14:50:53 sakharuk Exp $
+# $Id: structuretags.pm,v 1.99 2002/06/25 15:01:49 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -283,16 +283,16 @@
 	$result.=$head_tag_start.
 	  "<title>$name</title></head>\n$body_tag_start\n";
       }
-  } elsif ($target eq 'tex') {
-      my $id = $Apache::inputtags::part;
-      my $duedate = &Apache::lonnet::EXT("resource.$id.duedate"); 
-      $duedate = POSIX::strftime("%c",localtime($duedate));
-      if (not $ENV{'request.symb'} =~ m/\.page_/) {
-	  $result .= '\begin{document} \noindent\fbox{Due date: '.$duedate.'} \\vskip 1 mm';	  
-      } else {
-	  $result .= '\begin{minipage}{\minipagewidth} ';
-      }
-  }
+    } elsif ($target eq 'tex') {
+	my $id = $Apache::inputtags::part;
+	my $duedate = &Apache::lonnet::EXT("resource.$id.duedate"); 
+	$duedate = POSIX::strftime("%c",localtime($duedate));
+	if (not $ENV{'request.symb'} =~ m/\.page_/) {
+	    $result .= '\begin{document} \noindent\fbox{Due date: '.$duedate.'} \\vskip 1 mm';	  
+	} else {
+	    $result .= '\begin{minipage}{\minipagewidth}\vskip 1mm\fbox{Due date: '.$duedate.'} \\vskip 1 mm';
+	}
+    }
   } elsif ($target eq 'edit') {
     $result.=$head_tag_start."</head>".$body_tag_start.
       '<form name="lonhomework" method="POST" action="'.