From 685139a981cc69ca39bd0eeaf608baff47549771 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 27 Mar 2005 05:15:10 +0000 Subject: [PATCH] * (bug 1765) Tidy causes corruption inside --- includes/ImageGallery.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index d7819b5eb9..8ee152a282 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -132,9 +132,12 @@ class ImageGallery $s .= ($i%4==0) ? '' : ''; $thumb = $img->getThumbnail( 120, 120 ); $vpad = floor( ( 150 - $thumb->height ) /2 ) - 2; - $s .= '
' . - '
'. - $sk->makeKnownLinkObj( $nt, $thumb->toHtml() ) . '
' . + $s .= '
' . '
'; + + # ATTENTION: The newline after
is needed to accommodate htmltidy which + # in version 4.8.6 generated crackpot html in its absence, see: + # http://bugzilla.wikimedia.org/show_bug.cgi?id=1765 + $s .= $sk->makeKnownLinkObj( $nt, $thumb->toHtml() ) . '
' . "\n" . $textlink . $text . $nb . '
'; $s .= "
\n"; -- 2.20.1