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

damieng damieng at source.lon-capa.org
Fri Jan 22 17:31:51 EST 2016


damieng		Fri Jan 22 22:31:51 2016 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  removed extra br before table in tth output with display mode (to avoid a large blank space when there is a div or p before)
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.116 loncom/xml/lontexconvert.pm:1.117
--- loncom/xml/lontexconvert.pm:1.116	Wed Jun 18 06:48:03 2014
+++ loncom/xml/lontexconvert.pm	Fri Jan 22 22:31:51 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.116 2014/06/18 06:48:03 raeburn Exp $
+# $Id: lontexconvert.pm,v 1.117 2016/01/22 22:31:51 damieng Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -178,6 +178,7 @@
     $xmlstring=~s/^\s*\<br clear\=\"all\"/\<br/s;
     $xmlstring=~s/^\s*//;
     $xmlstring=~s/\s*$//;
+    $xmlstring=~s/^<br \/><table/<table/;
     &Apache::lonxml::end_alarm();
 
     #




More information about the LON-CAPA-cvs mailing list