Skip to content
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

An element that was moved out of a table can lead to broken table elements in the diff #52

Open
GoogleCodeExporter opened this issue Nov 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Using the old.html and new.html files attached, call "java -jar 
daisydiff.jar old.html new.html"
This produces the attached daisydiff.html

What is the expected output? What do you see instead?
The produced daisydiff.htm contains a <td> Element that is outside of any 
<table>.
In my case the "abc" String should not have been moved out of table.

What version of the product are you using? On what operating system?
daisydiff 1.2 running on osx

Original issue reported on code.google.com by christop...@gmail.com on 25 Apr 2013 at 8:17

Attachments:

@GoogleCodeExporter
Copy link
Author

A workaround (until fixed) is to use jSoup (jsoup.org) to parse the resultant 
output from DaisyDiff into a jSoup Document object and then toString() that to 
generate a clean HTML string.  jSoup will clean up any erroneous elements in 
the document.

eg:
docObj = jSoup.parse(diff_HTML);
return docObj.toString();

Original comment by henrythe...@gmail.com on 16 Jul 2013 at 12:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant