[Orca-checkins] r487 - orca/trunk/lib/Orca

blair at orcaware.com blair at orcaware.com
Thu Sep 8 20:32:38 PDT 2005


Author: blair at orcaware.com
Date: Thu Sep  8 20:31:43 2005
New Revision: 487

Modified:
   orca/trunk/lib/Orca/ImageFile.pm

Log:
XHTML correctness fix.

* lib/Orca/ImageFile.pm
  (image_src_size):
    In the returned image size HTML snippet, put the image width and
      height in double quotes so that the string is valid XHTML.


Modified: orca/trunk/lib/Orca/ImageFile.pm
==============================================================================
--- orca/trunk/lib/Orca/ImageFile.pm	(original)
+++ orca/trunk/lib/Orca/ImageFile.pm	Thu Sep  8 20:31:43 2005
@@ -317,7 +317,8 @@
 # empty string or the size of the image.
 sub image_src_size {
   if ($_[0]->[I_IMAGE_HEIGHT] and $_[0]->[I_IMAGE_WIDTH]) {
-    return "width=$_[0]->[I_IMAGE_WIDTH] height=$_[0]->[I_IMAGE_HEIGHT]";
+    return "width=\"$_[0]->[I_IMAGE_WIDTH]\" " .
+           "height=\"$_[0]->[I_IMAGE_HEIGHT]\"";
   } else {
     return '';
   }



More information about the Orca-checkins mailing list