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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 03 Jun 2004 14:57:05 -0000


sakharuk		Thu Jun  3 10:57:05 2004 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  Bug 3035 (vertical space in TeX) is fixed.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.218 loncom/xml/londefdef.pm:1.219
--- loncom/xml/londefdef.pm:1.218	Wed May 26 11:33:45 2004
+++ loncom/xml/londefdef.pm	Thu Jun  3 10:57:05 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.218 2004/05/26 15:33:45 sakharuk Exp $
+# $Id: londefdef.pm,v 1.219 2004/06/03 14:57:05 sakharuk Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -1154,8 +1154,10 @@
     if ($target eq 'web') {
 	$currentstring .= $token->[4];
     } elsif ($target eq 'tex') {
-	if ($$tagstack[-2] ne 'sub' && $$tagstack[-2] ne 'sup') {
-	    $currentstring .= '\vskip 0.2 mm ';
+	if (($$tagstack[-2] eq 'b') || ($$tagstack[-2] eq 'strong')) {
+	    $currentstring .= ' \vskip 0 mm ';
+	} elsif ($$tagstack[-2] ne 'sub' && $$tagstack[-2] ne 'sup') {
+	    $currentstring .= '\strut \\\\ \strut ';
 	}
     }
     return $currentstring;