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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 01 Oct 2002 20:44:44 -0000


sakharuk		Tue Oct  1 16:44:44 2002 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  Removed gradestatus output for printing exams.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.119 loncom/homework/structuretags.pm:1.120
--- loncom/homework/structuretags.pm:1.119	Mon Sep 30 11:10:11 2002
+++ loncom/homework/structuretags.pm	Tue Oct  1 16:44:44 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.119 2002/09/30 15:10:11 sakharuk Exp $
+# $Id: structuretags.pm,v 1.120 2002/10/01 20:44:44 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -349,7 +349,7 @@
 		if(not $duedate=~m/1969/) {
 		    $result .= '\begin{document} \noindent\textit{Due date: '.$duedate.'} \vskip 1 mm\noindent \begin{minipage}{\textwidth}';	
 		} else {
-		    $result .= '\begin{document} \noindent \vskip 1 mm \begin{minipage}{\textwidth}';
+		    $result .= '\begin{document} \noindent \vskip 1 mm \noindent\begin{minipage}{\textwidth}';
 		}
 	    } else {
 		$result .= '\vskip 1mm\textit{Due date: '.$duedate.'} \\\\\\\\';
@@ -664,6 +664,7 @@
     my $gradestatus=&Apache::inputtags::gradestatus($Apache::inputtags::part);
     #FIXME this is ugly we should just generate tex in inputtags
     if ($target eq 'tex') { $gradestatus=&html_to_tex($gradestatus); }
+    if ($Apache::lonhomework::type eq 'exam') {$gradestatus='';}
     return $gradestatus;
   }
   return '';