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
Would render in a browser as Words should have spaces between them as a new-line character would be treated as a space. See fiddle: https://jsfiddle.net/uL4h1x0v/
When this is parsed with Jsoup.parse() then output with doc.toString() in 1.14.3 we get an equivalent representation that still renders correctly in a browser:
Thanks for the report! This looks similar to the issue that was fixed in f6d9aa0, which was about preformatted text, but it appears here in a different context.
jhy
changed the title
Jsoup 1.14.3 to 1.15.1 output error
Newline whitespace between spans is too aggressively removed in HTML output
Jun 13, 2022
This was correct in 1.14.3, but it has broken in 1.15.1
The HTML
Would render in a browser as
Words should have spaces between them
as a new-line character would be treated as a space. See fiddle: https://jsfiddle.net/uL4h1x0v/When this is parsed with
Jsoup.parse()
then output withdoc.toString()
in 1.14.3 we get an equivalent representation that still renders correctly in a browser:…but in 1.15.1 it is incorrect, and renders as
Wordsshouldhavespacesbetweenthem
:The text was updated successfully, but these errors were encountered: