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

www lon-capa-cvs@mail.lon-capa.org
Mon, 31 Jan 2005 11:26:08 -0000


www		Mon Jan 31 06:26:08 2005 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  The 'clear="all"' in the leading <br /> of displaystyle equations adds horrible whitespace, so much so that students overlook equations because they think the
  page ended.
  
  Displaystyle equations already have
  
  <br /><table>..<table>...</table>..</table><br /> ... that's plenty.
  
  Removing the "clear".
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.40 loncom/xml/lontexconvert.pm:1.41
--- loncom/xml/lontexconvert.pm:1.40	Tue Oct 12 18:55:22 2004
+++ loncom/xml/lontexconvert.pm	Mon Jan 31 06:26:08 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.40 2004/10/12 22:55:22 albertel Exp $
+# $Id: lontexconvert.pm,v 1.41 2005/01/31 11:26:08 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -112,6 +112,7 @@
 	$errorstring.=&tth::ttherror();
 	$xmlstring=~s-</font(\s*)>-</font>-g;
     }
+    $xmlstring=~s/\<br clear\=\"all\"/\<br/gs;
     $xmlstring=~s/^\s*//;
     $xmlstring=~s/\s*$//;
     alarm(0);