Index: image_caption_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image_caption/contrib/Attic/image_caption_filter.module,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 image_caption_filter.module
--- image_caption_filter.module	14 Nov 2008 09:23:31 -0000	1.1.2.2
+++ image_caption_filter.module	2 Jan 2010 15:58:54 -0000
@@ -82,9 +82,9 @@
   //Only insert the caption and modify the <img> tag if it is has a title attribute and is one of the classes we are interested in
   if (in_array($class, array('image-left', 'image-right', 'standalone-image')) && ($title)) {
     $imgText = preg_replace ('/class=\"(.+?)\"/i', '', $imgText);
-    $returnText = "<div class=\"" . $class . "\" style=\"width: " . $width . "px\">"
+    $returnText = "<span class=\"" . $class . "\" style=\"width: " . $width . "px\">"
                   . $imgText 
-                  . "<div class=\"caption\">" . $title . "</div></div>";
+                  . "<span class=\"caption\">" . $title . "</span></span>";
     return $returnText . $alt_warning;
   }
   return $imgText . $alt_warning;

