kpdecker / jsdiff

A javascript text differencing implementation.
BSD 3-Clause "New" or "Revised" License
7.69k stars 491 forks source link

Preserve "garbage" #522

Closed ExplodingCabbage closed 2 weeks ago

ExplodingCabbage commented 2 weeks ago

I've decided this may have been misguided. It's way too complicated and the correct behaviours to implement are not clear. Several dilemmas:

Not worth it - at least not without a lot more subtle and nuanced design and implementation work than I've already put into this PR. If someone wants to take that on in due course, good for them, but I don't want to merge something half-assed because I fear I'm just making a mess that's worse than the status quo.

I will carefully cherry-pick out the actual bugfix from this PR, but I'm abandoning the rest.