diff --git a/Cite.php b/Cite.php index 0ec5b4a00..8f3c7a53d 100644 --- a/Cite.php +++ b/Cite.php @@ -433,8 +433,19 @@ function wfCite() { */ function parse( $in ) { global $wgTitle; - - $ret = $this->mParser->parse( $in, $wgTitle, $this->mParserOptions, false ); + + $ret = $this->mParser->parse( + $in, + $wgTitle, + $this->mParserOptions, + // Avoid whitespace buildup + false, + // Important, otherwise $this->clearState() + // would get run every time or + // is called, fucking the whole + // thing up. + false + ); $text = $ret->getText(); return $this->fixTidy( $text );