rtfpessoa / diff2html

Pretty diff to html javascript library (diff2html)
https://diff2html.xyz
MIT License
2.79k stars 272 forks source link

Code breaking when there is no change in a line #489

Closed ravellaabhinav closed 11 months ago

ravellaabhinav commented 1 year ago

Suppose if there are 5lines of code to check difference and there are changes in Line:1,2,5. The library is helping to print the difference with line number for line:1,2 and when there is a break in line number i.e.,line5 here line number is not getting printed instead char count number is being printed

Error:


image

rtfpessoa commented 11 months ago

👋 Can you post here the unified diff you used as input?

ravellaabhinav commented 11 months ago

I worked on that issue 3 months back. At present I am not having any samples

rtfpessoa commented 11 months ago

ok, then please re-open if you find it again as I cannot reproduce.