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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Mon, 15 Oct 2007 20:00:13 -0000


albertel		Mon Oct 15 16:00:13 2007 EDT

  Modified files:              (Branch: version_2_5_X)
    /loncom/xml	londefdef.pm 
  Log:
  - backport 1.379
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.375 loncom/xml/londefdef.pm:1.375.2.1
--- loncom/xml/londefdef.pm:1.375	Fri Aug 10 07:21:00 2007
+++ loncom/xml/londefdef.pm	Mon Oct 15 16:00:12 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.375 2007/08/10 11:21:00 foxr Exp $
+# $Id: londefdef.pm,v 1.375.2.1 2007/10/15 20:00:12 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -4538,6 +4538,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,