-
Notifications
You must be signed in to change notification settings - Fork 83
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
Using AddBlockExpression for table rows #40
Comments
Hi @Emins Sorry, I don't have much time to look into this, but I think it comes down to the Regex being used. You could try this:
Let me knnow if this captures each row separately. |
Thank you for reply, @Rohland Your regex don`t match rows. But, I have no problem with tr regex. This regex correct detect row as the each "Block":
and correct detect changes, for ex in the html code:
Issue with marking, when 2 rows changed. Now 2 rows was marked del and 2 rows marked ins. I want, 1 del, 1 ins, 1 del, 1 ins. I thing that issue in the core, in the main conception, because code search for Matching Blocks. And 2 BlockExpression detects as List of changed blocks. I just found one way, not a good solution, but may be will be helpful for someone. When Inserting replace tags can be added by ins and del order. In the Diff.cs find function:
replace with:
|
Hello dear Rohland, Thank you for this project.
I understand, that this project is not ideal for difficult html, but I`m trying to improve it... :)
So, I found the way to add Block Expressions to find differences in the table rows by:
AddBlockExpression(new Regex(@"<tr(.|\n)*?>(.|\n)*?<\/tr>", RegexOptions.IgnoreCase | RegexOptions.Multiline));
But this code may to select several tr rows for diff.
Any decision to make it for each tr row separately?
The text was updated successfully, but these errors were encountered: