From f9cf8042e416d47167391320f03a12e4e97c5bdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 13 Apr 2005 10:14:01 +0000 Subject: [PATCH] * Whitespace is now irrelivant when it comes to interwiki links (and categories) --- includes/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index d5217b80bd..f35a47ce9b 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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; } -- 2.20.1