From: Ævar Arnfjörð Bjarmason Date: Sun, 27 Mar 2005 05:15:10 +0000 (+0000) Subject: * (bug 1765) Tidy causes corruption inside X-Git-Tag: 1.5.0alpha1~491 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=685139a981cc69ca39bd0eeaf608baff47549771;p=lhc%2Fweb%2Fwiklou.git * (bug 1765) Tidy causes corruption inside --- 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";