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

Showing "..." instead of simply skipping lines with context #104

Open
rahul-cloud66 opened this issue Jul 17, 2019 · 0 comments
Open

Showing "..." instead of simply skipping lines with context #104

rahul-cloud66 opened this issue Jul 17, 2019 · 0 comments

Comments

@rahul-cloud66
Copy link

rahul-cloud66 commented Jul 17, 2019

I am comparing to txt files with a context of just 50 lines and like how github's display compares file, I wanted to show "..." when skipping intermediate lines that are not showed by context (the set of lines that are same in both files)
Anyway to generate them whilst still rendering diff in html?

@diff = Diffy::Diff.new(report_1_txt,report_2_txt,:include_plus_and_minus_in_html => true, :context=>50).to_s(:html)

Trying .each_chunk.to_adoesn't help either because at the end diff has to be rendered in html

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