fiduswriter/diffDOM

spurious newline added when diff contains a list with new elements

t3chguy opened this issue · 4 comments

See https://jsfiddle.net/3u95j6z0/

When applied, this diff looks like
image

Additionally, this diff could be simplified to just a single step and that would hugely clean it up.

Hey, the newline that is being added is because there is another textnode with a newline in it. This currently spans over 3 diffs, which could be cut down to 2 under perfect conditions. I think this looks quite acceptable though.

If you want to investigate it more and write a patch, I'd be happy to merge it @t3chguy .

@t3chguy I received a message that you commented on this issue, but the comment seems to have disappeared.

Yup, I deleted it, it was moot and a bad reproduction case.