mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +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'] ) ) {
|
if ( isset( $params['wikitext'] ) ) {
|
||||||
$wikitext = $params['wikitext'];
|
$wikitext = str_replace( "\r\n", "\n", $params['wikitext'] );
|
||||||
} else {
|
} else {
|
||||||
$wikitext = $this->getWikitext( $title, $params, $parserParams );
|
$wikitext = $this->getWikitext( $title, $params, $parserParams );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue