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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Mon, 15 Oct 2007 19:40:55 -0000


albertel		Mon Oct 15 15:40:55 2007 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - TeXwrap set to none should just emit the image (BUG#5479)
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.378 loncom/xml/londefdef.pm:1.379
--- loncom/xml/londefdef.pm:1.378	Thu Sep 20 17:39:13 2007
+++ loncom/xml/londefdef.pm	Mon Oct 15 15:40:53 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.378 2007/09/20 21:39:13 albertel Exp $
+# $Id: londefdef.pm,v 1.379 2007/10/15 19:40:53 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -4543,6 +4543,12 @@
     my ($align, $latex_rendering, $image, $width, $height) = @_;
     my $currentstring;        # The 1/2 wrapped image.
     my $closure;              # The closure of the wrappage.
+
+    # if it's none just return it back
+    if ($latex_rendering eq 'none') {
+	return ($image,'');
+    }
+
     #    If there's an alignment specification we need to honor it here.
     #    For the horizontal alignments, we will also honor the
     #    value of the latex specfication.  The default is parbox,