You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Rohland
At first, thank you so much for this great tool.
My question is: is there any workaround to detect the inline changed as below? I've looked in the discussion on http://www.rohland.co.za/index.php/2009/10/31/csharp-html-diff-algorithm/ and it seems the case very similar to user 'tats' during June 7, 2010.
`[Test]
public void Execute_DetectInlineStyleChanged_Test()
{
// Arrange
var oldText = @"
SECOND
";
var newText = @"
SECOND
";
// Act
var diff = new global::HtmlDiff.HtmlDiff(oldText, newText).Build();
Hi @Rohland ,
This has been a wonderful effort and i appreciate it. It is working perfectly except in the condition mentioned in the above condition. Can you please put light on that how can we solve this issue..
I tried making two document using CKEditor and that always contains inline tags and style which is ignored by the tool.
Hi all. I've found a problem (and probably a solution) related to this issue.
The Diff class use a Stack _specialTagDiffStack to keep track of special inline style tag. Unfortunately this works only if the inline tags are only on "one side" (i.e. deleted or inserted) but it doesn't work if there is a replace (say, changing from bold to italic).
This is probably due to the fact that if tags are on the same side, for well formed html the closures are encountered in reversal order respect to the opening tags, Thus LIFO works fine.
But when there is a replace, the closures are parsed in the same order of the openings.
I solved this using two stacks: _specialTagDiffStackIns and _specialTagDiffStackDel. It seems to work, but tests are in progress.
Hi @Rohland
At first, thank you so much for this great tool.
My question is: is there any workaround to detect the inline changed as below? I've looked in the discussion on http://www.rohland.co.za/index.php/2009/10/31/csharp-html-diff-algorithm/ and it seems the case very similar to user 'tats' during June 7, 2010.
`[Test]
public void Execute_DetectInlineStyleChanged_Test()
{
// Arrange
var oldText = @"
SECOND
";
var newText = @"
SECOND
";
// Act
var diff = new global::HtmlDiff.HtmlDiff(oldText, newText).Build();
The text was updated successfully, but these errors were encountered: