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

more coherent diffs #7

Open
reagle opened this issue Oct 2, 2019 · 2 comments
Open

more coherent diffs #7

reagle opened this issue Oct 2, 2019 · 2 comments

Comments

@reagle
Copy link

reagle commented Oct 2, 2019

In the resulting output (screenshot of docx below) the diffs aren't friendly. Notice the sentence "Additionally, the lessons learned from that time are at risk of being forgotten" is fragmented, part of it is buried in deleted text and the rest follows all the deleted text. Is there a diff option that could improve on this?

Screen Shot 2019-10-02 at 4 41 09 PM

@davidar
Copy link
Owner

davidar commented Oct 3, 2019

Good question. In this case it seems like it would be better to diff at the level of sentences or paragraphs rather than words. Would it help to have a global setting to change this, or would that be too coarse?

@reagle
Copy link
Author

reagle commented Oct 3, 2019

I'm happy to try either, I have no thoughts about the granularity of the setting presently.

BTW: The source files used above use semantic line breaks, which make normal diffs much nicer to view.

Screen Shot 2019-10-03 at 8 17 12 AM

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

2 participants