Last modified: 2012-12-06 01:31:04 UTC
For some reason this doesn't happen in /_rtform/ , but if I copypaste the output of /_wikitext/ into /_html/ (which is closer to what happens in VE in practice), I can make it happen. Wikitext input: <pre>\n\n\nFoo</pre> HTML output: <pre data-parsoid="{"stx":"html","tsr":[0,5],"dsr":[0,17]}">\n\n\nFoo</pre> HTML input: (same) Wikitext output: <pre>\n\nFoo</pre>
This is the same issue as bug 42667. Our HTML parser eats the newline too, so we need to restore it based on data-parsoid rt data. _rtform does not serialize the HTML DOM to parse it back immediately, so this issue does not occur there.
Fixed per bug 42667.