mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-18 01:30:32 +00:00
Live fix: debugging, trim mysterious extra whitespace
This commit is contained in:
parent
085b02f0bc
commit
eb3a3f7836
7
Cite.php
7
Cite.php
|
@ -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" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue