> In that case I feel it should still ignore trailing newlines when they're not part of the diff...

That sounds like a better way to fix things. I'll investigate that and see how much extra work it would require.