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

diff doesn't consider \n as part of diff from where the text is removed #50

Open
aaawin opened this issue Oct 23, 2018 · 0 comments
Open

Comments

@aaawin
Copy link

aaawin commented Oct 23, 2018

Hi,

I am using diff_match_patch cpp version and running into an issue where the API returns wrong diff between two texts if a line is deleted and that line had an empty line after it.
I am enclosing a screen shot of the wrong diff given by API in diff demo. The diff doesn't represent the correct LF removed.

I would appreciate if someone can take a look.

Thanks.

Example:

Text1:
Aa
Bb

Cc
Dd

Text2:
Aa

Cc
Dd

diffmatchpatch_issue

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

No branches or pull requests

1 participant