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

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 23 Jun 2003 19:55:18 -0000


sakharuk		Mon Jun 23 15:55:18 2003 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  Bug 1823 is fixed - </body> tag does not appear in TeX output anymore.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.188 loncom/homework/structuretags.pm:1.189
--- loncom/homework/structuretags.pm:1.188	Fri Jun 20 10:45:19 2003
+++ loncom/homework/structuretags.pm	Mon Jun 23 15:55:18 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.188 2003/06/20 14:45:19 bowersj2 Exp $
+# $Id: structuretags.pm,v 1.189 2003/06/23 19:55:18 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -507,7 +507,8 @@
 		}
 	    } elsif ($status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER' ||
 		     $status eq 'UNCHECKEDOUT' ) {
-		if ($target ne 'tex') {
+		if ($target ne 'tex' &&
+		    $ENV{'form.answer_output_mode'} ne 'tex') {
 		    $result.="</body>\n";
 		}
 	    }