Mergely
Mergely copied to clipboard
Using Enter key in middle of line
Hi, if we have a long line with some sentences, and try to break it to two part by using Enter key, the second part marked as deleted in lhs and it marked as added in rhs. but the only change is one Enter key.
Thanks
Mergely does not differentiate all text as a single operation. For memory / performance reasons, it diffs all lines first, and then diffs the words within lines (this is key). In your example, all you did was introduce a new line. Mergely still saw this as a single change group. However, by introducing a new line, Mergely's second diff (to compare words within lines) now has a new line, and the whole line is "added".
Even the ignore whitespace option (ignorews) would not apply in this situation, and admittedly, that is not great. It would be worth implementing an enhancement to compare changes as characters instead of words, which should improve the result.