[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 08 Jan 2007 19:09:23 -0000


albertel		Mon Jan  8 14:09:23 2007 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - workaround for latex not liking \par or \vskip inside of \multirow
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.349 loncom/xml/londefdef.pm:1.350
--- loncom/xml/londefdef.pm:1.349	Tue Dec 19 17:43:38 2006
+++ loncom/xml/londefdef.pm	Mon Jan  8 14:09:23 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.349 2006/12/19 22:43:38 www Exp $
+# $Id: londefdef.pm,v 1.350 2007/01/08 19:09:23 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -2251,6 +2251,12 @@
 		    }
 		    $have_rowspan++;
 		    $output .= '\multirow{'.$rowspan.'}[0]{*}{';
+		    
+		    $Apache::londefdef::table[-1]{'content'}[$in][$jn] =~
+			s{^\s*\\par\s*}{};
+		    $Apache::londefdef::table[-1]{'content'}[$in][$jn] =~
+			s{\s*\\vskip\s*0pt\s*$}{};
+
 		    #
 		    # If we did not throw in a multicolumn to align, then add 
 		    # an extra {