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
jsoup does test if an element is in a <pre> (in Element#preserveWhitespace()) and will preserve textnode formatting; and should not be otherwise formatting elements. There is a limit (6 up levels) of stack depth as an optimization for serialization time, but that wouldn't be impacting in this instance. I guess this issue was resolved in one of the pretty-print fixes in 1.15.4 but haven't checked yet.
Can you review with 1.15.4? If you find other cases where's it's not working as desired, happy to take a look.
Hi,
apparently Jsoup formats the content inside a
<pre>
tag, resulting in a non-equivalent rendering.Given the following HTML:
And running the following Java code
the result is
I'm using latest 1.15.3 version
The text was updated successfully, but these errors were encountered: