mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Merge "ApiVisualEditorEdit: Normalize newlines in wikitext"
This commit is contained in:
commit
af700cd536
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue