Steps to reproduce:
- Open an article (with more than one line) for editing in VE.
- Execute:
(function () { var target = ve.init.target; target.serialize(target.getDocToSave(), function (wikitext) { console.log(wikitext.indexOf('\r\n')); }); })();
Actual and expected result: the console shows -1, as linebreaks should be encoded just using \n.
- Switch to NWE.
- Repeat step 2.
Expected result: Again -1.
Actual result: Some positive number, for some reason now all linebreaks are encoded as \r\n (which will be normalized on saving, but is confusing if you work with the generated wikitext yourself).