rtfpessoa / diff2html

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

how to make `diff2html` display line breaks for line-by-line view ?? #524

Closed yockey1 closed 5 months ago

yockey1 commented 8 months ago

Issue Description

I am trying to configure diff2html to display the diff in line breaks for line-by-line view. I have referred to issues #99 and #97, but I am still unable to achieve the desired functionality. I am aware that there are ongoing efforts to make it work for side-by-side view as mentioned in #99.

I have also noticed similar queries from other users but couldn't find a clear solution. I have checked the comments on #97 (comment link) and #99 (comment link).

Current Environment and Status

Any guidance on how to make diff2html display line breaks for line-by-line view would be greatly appreciated.

Thank you!

rtfpessoa commented 5 months ago

Like the other threads it is not a simple problem to solve. It would require some css mixed with some configuration to allow maybe swapping classes to make current style and break style work. Honestly I don't think we need another thread as we have others. If you find how to make it work let me know.