We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I encountered an issue where normalizing (Jsoup.parse(doc).toString()) an already-normalized document produces a different output.
Jsoup.parse(doc).toString()
Normalizing this document:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Test</title> </head> <body> <!-- Comment --> </body> </html>
Produces this output:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Test</title> </head> <body><!-- Comment --> </body> </html>
I.e. the whitespace between the opening body tag and the comment gets removed.
body
However, normalizing that output then produces the original document with the space between the opening body tag and the comment.
At first I thought this was related to the pretty-printing improvements in version 1.15.4, but it also appears in version 1.15.3.
The text was updated successfully, but these errors were encountered:
a90bae7
Thanks, fixed!
Sorry, something went wrong.
Thank you! :)
jhy
No branches or pull requests
I encountered an issue where normalizing (
Jsoup.parse(doc).toString()
) an already-normalized document produces a different output.Normalizing this document:
Produces this output:
I.e. the whitespace between the opening
body
tag and the comment gets removed.However, normalizing that output then produces the original document with the space between the opening
body
tag and the comment.At first I thought this was related to the pretty-printing improvements in version 1.15.4, but it also appears in version 1.15.3.
The text was updated successfully, but these errors were encountered: