Skip to content

Rework line ending handling #6

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

Closed
wants to merge 2 commits into from

Conversation

martinlindhe
Copy link

Hello & thank for a nice lib!
I needed to repurpose it a little hence the pull request.
These changes will break current usage, because it changes how lines are stored
It was changed to render line endings with diff.Eol so it could display properly on Windows,
and now simply returns a []string with the diff, without line endings encoded.

The second commit is just some tweaks that gometalinter mentioned.

@pmezard
Copy link
Owner

pmezard commented Feb 15, 2017

Sorry for the 4 months late reply. go-difflib was one of the first things I wrote in Go, it is not idiomatic and the API should really be reworked. But I do not want to break the API at this point, I know people use it and it is not worth the pain. Maybe someone can fork it and come up with a much better version.

@pmezard pmezard closed this Feb 15, 2017
@martinlindhe
Copy link
Author

No worries, I'm using a local fork with this patch applied which is good enough for me.

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

Successfully merging this pull request may close these issues.

None yet

2 participants