php-diff icon indicating copy to clipboard operation
php-diff copied to clipboard

Fix for a small line numbering error.

Open vince2corte opened this issue 1 year ago • 1 comments

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 avatar Sep 22 '23 08:09 vince2corte

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

JBlond avatar Dec 25 '23 08:12 JBlond