Index: branches/REL1_6/phase3/includes/Parser.php |
— | — | @@ -1524,6 +1524,7 @@ |
1525 | 1525 | $sortkey = $text; |
1526 | 1526 | } |
1527 | 1527 | $sortkey = Sanitizer::decodeCharReferences( $sortkey ); |
| 1528 | + $sortkey = str_replace( "\n", '', $sortkey ); |
1528 | 1529 | $sortkey = $wgContLang->convertCategoryKey( $sortkey ); |
1529 | 1530 | $this->mOutput->addCategory( $nt->getDBkey(), $sortkey ); |
1530 | 1531 | |