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

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 02 Oct 2002 18:14:07 -0000


sakharuk		Wed Oct  2 14:14:07 2002 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
   Corrections to print adv course and exams.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.121 loncom/homework/structuretags.pm:1.122
--- loncom/homework/structuretags.pm:1.121	Tue Oct  1 17:04:34 2002
+++ loncom/homework/structuretags.pm	Wed Oct  2 14:14:07 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.121 2002/10/01 21:04:34 sakharuk Exp $
+# $Id: structuretags.pm,v 1.122 2002/10/02 18:14:07 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -389,9 +389,7 @@
 	      $status ne 'UNCHECKEDOUT') {
       # if part is zero, no <part>s existed, so we need show the current 
       # grading status
-      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); }
+      my $gradestatus = &Apache::inputtags::gradestatus($Apache::inputtags::part,$target);
       if ($Apache::lonhomework::type ne 'exam') {$result.= $gradestatus;}
     }
     if (