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

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 25 Aug 2004 19:16:25 -0000


sakharuk		Wed Aug 25 15:16:25 2004 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  Bug 3384 (<part> inside of a table contains the text \end{minipage} in it) is fixed. I implemented this bug during fixing if previous bug. Sorry for this.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.264 loncom/homework/structuretags.pm:1.265
--- loncom/homework/structuretags.pm:1.264	Fri Aug 13 11:54:06 2004
+++ loncom/homework/structuretags.pm	Wed Aug 25 15:16:25 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.264 2004/08/13 15:54:06 sakharuk Exp $
+# $Id: structuretags.pm,v 1.265 2004/08/25 19:16:25 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1149,7 +1149,7 @@
 	    $gradestatus='';
 	}
 	$result=$gradestatus;
-	if ($$tagstack[-2] eq 'td') {$result.='\end{minipage}';} 
+	if ($$tagstack[-2] eq 'td' and $target eq 'tex') {$result.='\end{minipage}';} 
     } elsif ($target eq 'edit') {
 	$result=&Apache::edit::end_table();
     }