Live fix: debugging, trim mysterious extra whitespace

This commit is contained in:
Brion Vibber 2006-04-02 03:43:47 +00:00
parent 085b02f0bc
commit eb3a3f7836

View file

@ -325,6 +325,10 @@ function wfCite() {
* @return string XHTML ready for output
*/
function referencesFormat() {
global $wgTitle;
wfDebugLog( 'cite', $wgTitle->getFullText() );
$ent = array();
foreach ( $this->mRefs as $k => $v )
@ -334,7 +338,8 @@ function wfCite() {
$suffix = wfMsgForContentNoTrans( 'cite_references_suffix' );
$content = implode( "\n", $ent );
return $this->parse( $prefix . $content . $suffix );
// Live hack: parse() adds two newlines on WM, can't reproduce it locally -ævar
return rtrim( $this->parse( $prefix . $content . $suffix ), "\n" );
}
/**