Last modified: 2010-05-15 14:36:25 UTC
Using the tidy configuration here (also used on Wikimedia websites): http://cvs.sourceforge.net/viewcvs.py/wikipedia/extensions/tidy/tidy.conf?rev=1.2&view=markup tidy will corrupt gallery captions.
This was an upstream issue as suspected, the patch needed to work around this changed one line of code: - $sk->makeKnownLinkObj( $nt, $thumb->toHtml() ) . '</div><div class="gallerytext">' . + $sk->makeKnownLinkObj( $nt, $thumb->toHtml() ) . '</div><div class="gallerytext">' . "\n" . See: http://mail.wikipedia.org/pipermail/mediawiki-cvs/2005-March/007241.html