* Whitespace is now irrelivant when it comes to interwiki links (and categories)
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 13 Apr 2005 10:14:01 +0000 (10:14 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 13 Apr 2005 10:14:01 +0000 (10:14 +0000)
includes/Parser.php

index d5217b8..f35a47c 100644 (file)
@@ -1255,8 +1255,8 @@ class Parser
                                # Interwikis
                                if( $iw && $this->mOptions->getInterwikiMagic() && $nottalk && $wgContLang->getLanguageName( $iw ) ) {
                                        array_push( $this->mOutput->mLanguageLinks, $nt->getFullText() );
-                                       $tmp = $prefix . $trail ;
-                                       $s .= (trim($tmp) == '') ? '': $tmp;
+                                       $s = rtrim($s . "\n");
+                                       $s .= trim($prefix . $trail, "\n") == '' ? '': $prefix . $trail;
                                        continue;
                                }