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

raeburn raeburn at source.lon-capa.org
Fri Apr 1 16:17:43 EDT 2022


raeburn		Fri Apr  1 20:17:43 2022 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - Print tables when "Allow problems to be split over pages" set to yes.
    Fix bug introduced in rev. 1.264 with changes to address bug 2336. 
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.571 loncom/homework/structuretags.pm:1.572
--- loncom/homework/structuretags.pm:1.571	Mon Sep 28 00:10:28 2020
+++ loncom/homework/structuretags.pm	Fri Apr  1 20:17:43 2022
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.571 2020/09/28 00:10:28 raeburn Exp $
+# $Id: structuretags.pm,v 1.572 2022/04/01 20:17:43 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3107,7 +3107,11 @@
 	    $gradestatus='';
 	}
 	$result.=$gradestatus;
-	if ($$tagstack[-2] eq 'td' and $target eq 'tex') {$result.='\end{minipage}';} 
+	if ($$tagstack[-2] eq 'td' and $target eq 'tex') {
+            if (not $env{'form.problem_split'}=~/yes/) {
+                $result.='\end{minipage}';
+            }
+        } 
     } elsif ($target eq 'edit') {
 	$result.=&Apache::edit::end_table();
     } elsif ($target eq 'modified') {




More information about the LON-CAPA-cvs mailing list