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

Fix for a small line numbering error. #61

Open
vince2corte opened this issue Sep 22, 2023 · 1 comment
Open

Fix for a small line numbering error. #61

vince2corte opened this issue Sep 22, 2023 · 1 comment

Comments

@vince2corte
Copy link

Small library very useful for me. Thank's a lot !

Line 129 of the file lib/Dif/Renderer/Html/SideBySide.php should be corrected like this:
$toLine = $change['base']['offset'] + $no + 1; -> $toLine = $change['changed']['offset'] + $no + 1;

My two cents..

@vince2corte vince2corte changed the title Fix for a little error numbering lines Fix for a small line numbering error. Sep 22, 2023
@JBlond
Copy link

JBlond commented Dec 25, 2023

This project is dead, but you can use https://github.com/JBlond/php-diff

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