php-diff
php-diff copied to clipboard
Fix for a small line numbering error.
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..
This project is dead, but you can use https://github.com/JBlond/php-diff