mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Revert "Fixed newline stripping in rtve mode."
This reverts commit bb7d7c09a5
This commit is contained in:
parent
bb7d7c09a5
commit
d01911e18f
|
@ -328,7 +328,7 @@ app.get( new RegExp('/_rtve/(?:(?:(?:' + env.interwikiRegexp + '):+)?(' + env.in
|
|||
var tpr = new TemplateRequest( env, target ),
|
||||
cb = function ( req, res, src, document ) {
|
||||
// strip newlines from the html
|
||||
var html = document.innerHTML.replace(/>[\r\n]+/g, '>'),
|
||||
var html = document.innerHTML.replace(/[\r\n]/g, ''),
|
||||
p = new html5.Parser();
|
||||
p.parse( html );
|
||||
var newDocument = p.tree.document;
|
||||
|
|
Loading…
Reference in a new issue