Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Enter key in middle of line #114

Open
MHajisoft opened this issue Jun 26, 2019 · 1 comment
Open

Using Enter key in middle of line #114

MHajisoft opened this issue Jun 26, 2019 · 1 comment

Comments

@MHajisoft
Copy link

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
image

@wickedest
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants