Revert "Fixed newline stripping in rtve mode."

This reverts commit bb7d7c09a5
This commit is contained in:
GWicke 2012-06-19 18:02:37 +00:00 committed by Gerrit Code Review
parent bb7d7c09a5
commit d01911e18f

View file

@ -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;