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

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 16 Oct 2006 11:05:22 -0000


foxr		Mon Oct 16 07:05:22 2006 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  Bug 4078 - also get a line break prior to a table when nested in a simple
  <sub> or <sup>... this may need a bit more work.. in fact all the specials
  for <sub><sup> need to deal with the cases of nested <sub> or <sub><sup> e.g.
  and don't at present.  Not yet too sure how to go about getting that
  entirely right either.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.339 loncom/xml/londefdef.pm:1.340
--- loncom/xml/londefdef.pm:1.339	Mon Sep 25 06:41:15 2006
+++ loncom/xml/londefdef.pm	Mon Oct 16 07:05:20 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.339 2006/09/25 10:41:15 foxr Exp $
+# $Id: londefdef.pm,v 1.340 2006/10/16 11:05:20 foxr Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -1991,7 +1991,13 @@
         $Apache::londefdef::table[-1]{'minlen'}=[];
         $Apache::londefdef::table[-1]{'content'}=[];
         $Apache::londefdef::table[-1]{'align'}=[];
-        $currentstring.='\keephidden{NEW TABLE ENTRY}';
+	if (&is_inside_of($tagstack, 'sup')) {
+	    $currentstring .= '}} \\\\ \ensuremath{^{ ';
+	}
+	if (&is_inside_of($tagstack, 'sub')) {
+	    $currentstring .= '}} \\\\ \ensuremath{_{ ';
+	}
+        $currentstring.=' \keephidden{NEW TABLE ENTRY}';
 
 
     }