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

www lon-capa-cvs@mail.lon-capa.org
Fri, 11 Feb 2005 16:46:39 -0000


www		Fri Feb 11 11:46:39 2005 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  It does not seem to make any difference in the display of equations, but I
  meant to only replace the very first <br clear="all" /> if there's nothing
  but whitespace in front of it. Arrgh, missing "^"
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.42 loncom/xml/lontexconvert.pm:1.43
--- loncom/xml/lontexconvert.pm:1.42	Wed Feb  9 10:45:19 2005
+++ loncom/xml/lontexconvert.pm	Fri Feb 11 11:46:38 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.42 2005/02/09 15:45:19 www Exp $
+# $Id: lontexconvert.pm,v 1.43 2005/02/11 16:46:38 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -36,8 +36,6 @@
 # The C source of the Code may not be distributed by the Licensee
 # to any other parties under any circumstances.
 #
-# 05/29/00,05/30,10/11,10/20 Gerd Kortemeyer
-# 5/4 Gerd Kortemeyer
 
 package Apache::lontexconvert;
 
@@ -112,7 +110,7 @@
 	$errorstring.=&tth::ttherror();
 	$xmlstring=~s-</font(\s*)>-</font>-g;
     }
-    $xmlstring=~s/\s*\<br clear\=\"all\"/\<br/s;
+    $xmlstring=~s/^\s*\<br clear\=\"all\"/\<br/s;
     $xmlstring=~s/^\s*//;
     $xmlstring=~s/\s*$//;
     alarm(0);