-
Notifications
You must be signed in to change notification settings - Fork 4
Side by side diff shows only partially all deleted lines #32
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
Comments
That is a css problem. @vendeeglobe Please inspect which WackoWiki css rule overrides the css rule from php-diff. |
But then the missing lines should show up in the HTML and they are not. I can provide other examples. |
Can you provide sample texts, so we can use them at our systems? |
The text files with the source text for each revision. Example 1: Example 2: Examples can be use freely. |
Since commit c017af5, the string for the table rows of deleted lines are defined with the heredoc syntax at method The concatenation is accidentally dropped with this change, which results in only returning the last row instead of all deleted rows. I'll fix this bug, update the tests, examples and readme file and make PR. |
I've made a PR which is waiting on JBlond to be reviewed and merged. |
@vendeeglobe There is now a release for it. |
Thanks for patching. |
Theoretically...
$html1 = 'OneDeletedLine'
$html2 .= 'OneDeletedLine'
// $html2 == $html1 Therefor, I've updated the sample text to a block of 2 deleted lines. $html1 = 'fisrtDeletedLine';
$html1 = 'SecondDeletedLine';
$html2 .= 'fisrtDeletedLine';
$html2 .= 'secondDeletedLine';
// $html2 != $html1
// 'fisrtDeletedLineSecondDeletedLine' != 'SecondDeletedLine'
You might want to add more lines for the other type of changes as well (equal, inserted, replaced lines). Another (and maybe easier) method is to mock some of the classes. |
This happens only occasionally within the side by side diff mode.
php-diff: v1.16
WackoWiki 6.0.7
The text was updated successfully, but these errors were encountered: