Page MenuHomePhabricator

Trailing indent-pre empty line rendering difference
Open, LowPublic

Description

Ex,

 asdf
 

123

Legacy

<pre>asdf

</pre>
<p>123
</p>

Parsoid

<pre data-parsoid='{"dsr":[0,5,1,0]}'>asdf</pre>
 <p data-parsoid='{"dsr":[7,12,0,0]}'>
<br data-parsoid='{"dsr":[8,8,0,0]}'/>
123</p>

Can probably be closed as a known difference.

From https://parsoid-vs-core.wmflabs.org/diff/viwikivoyage/S%E1%BB%95_tay_ti%E1%BA%BFng_Th%C3%A1i

https://vi.wikivoyage.org/wiki/S%E1%BB%95_tay_ti%E1%BA%BFng_Th%C3%A1i?useparsoid=0
https://vi.wikivoyage.org/wiki/S%E1%BB%95_tay_ti%E1%BA%BFng_Th%C3%A1i?useparsoid=1

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I'd say the Parsoid rendering on that page is the better one anyway, unless one is trying to display a trailing whitespace in preformatted, which I don't think there are many people who would want to do that (and I think that there's an escape hatch for that anyway?).

I'm not totally sold on Parsoid inserting line breaks though in that minimal test (which don't seem to be a problem on that specific page?).

MSantos moved this task from Needs Triage to Known Differences on the Parsoid board.