-
Notifications
You must be signed in to change notification settings - Fork 4
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
Diff mode Merged shows result only partially #90
Comments
Ignores changes in line Example: (enabled diff for guests temporarily) |
Which options did you provide to the Diff class? |
No options, only default. Should I set particular options for Merged? https://github.com/WackoWiki/wackowiki/blob/master/wacko/handler/page/diff.php#L352 |
I forgot to mention that I use PHP 8.0. Found this in the error log with varying array keys:
|
I didn't test with php 8, bit I'm still suprised by it. Thank you for testing and feedback. |
Something is incorrect with your error description or file. See below lines. php-diff/lib/jblond/Diff/Renderer/Html/Merged.php Lines 216 to 218 in 9830fe0
Also the script doesn't throw a warning or error at my local server, using php v8.0.2. |
I patched away the table header therfore the different line number. The error messages are from the server log and do probably not belong to the posted example. I turned error reporting on again after posting the issue. |
I've created a new issue for it Also you don't have to patch the renderer. You can create your own or extend an included one. |
* Renderer doesn't show lines which where added to version 2 of a replaced block. Code assumed the same amount of lines in replacement blocks at both versions. Now it handles replacement block differently when the amount of lines are equal or differs. * Code cleanup. * ClassName for lines of replacement blocks are incorrect. Insertion is insinuated, but should be replacement.
Fix #90 - Diff mode Merged shows result only partially
Don't forget to clear you browsers cache to pull in the newest css files. |
Already merged and Browser cache has been purged. |
After implementing the Merged mode a few days ago using php-diff 2.3.1, it seems that the HTML Merged mode shows the diff only partially in comparison to Unified or SideBySide.
Example:

Unified
Merged

Example text:
version_a.txt
version_b.txt
The text was updated successfully, but these errors were encountered: