Merge "ApiVisualEditorEdit: Normalize newlines in wikitext"

This commit is contained in:
jenkins-bot 2019-12-13 15:42:50 +00:00 committed by Gerrit Code Review
commit af700cd536

View file

@ -389,7 +389,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
}
if ( isset( $params['wikitext'] ) ) {
$wikitext = $params['wikitext'];
$wikitext = str_replace( "\r\n", "\n", $params['wikitext'] );
} else {
$wikitext = $this->getWikitext( $title, $params, $parserParams );
}