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

Unexpected trailing space #2215

Open
sharkov63 opened this issue Oct 18, 2024 · 0 comments
Open

Unexpected trailing space #2215

sharkov63 opened this issue Oct 18, 2024 · 0 comments

Comments

@sharkov63
Copy link

<html>
 <head></head>
 <body>
  a
  <div>
  </div>
 </body>
</html>

After running Jsoup.parse on this input, .outputHtml() on the resulted Document produces

<html>
 <head></head>
 <body>
  a·
  <div>
  </div>
 </body>
</html>

where · is the trailing whitespace.

I believe issue #1798 was about this problem, but it seems that the issue persists. The version under test is 1.18.1.

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

No branches or pull requests

4 participants
@sharkov63 and others