From ef40dd4e4d0835fd522e568f62f84d7c3a5cc80b Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Fri, 9 Feb 2007 00:37:29 +0000 Subject: [PATCH] (ImageSupportRule): Add a CloseHtmlEnvironments() call if the image has a caption. --- modules/image.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/image.pl b/modules/image.pl index 49d18027..405ca12d 100644 --- a/modules/image.pl +++ b/modules/image.pl @@ -16,7 +16,7 @@ # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 USA -$ModulesDescription .= '

$Id: image.pl,v 1.25 2006/09/01 23:46:53 as Exp $

'; +$ModulesDescription .= '

$Id: image.pl,v 1.26 2007/02/09 00:37:29 as Exp $

'; use vars qw($ImageUrlPath); @@ -68,7 +68,7 @@ sub ImageSupportRule { $caption = $q->a({-href=>$reference, -class=>$refclass}, $caption); } $result .= $q->br() . $q->span({-class=>'caption'}, $caption); - $result = $q->div({-class=>$class}, $result); + $result = CloseHtmlEnvironments() . $q->div({-class=>$class}, $result); } pos = $oldpos; }