When I want to println a downloaded file using Jsoup some information from the DocType are missing if there is a linebreak in it. Is this intended or is this a bug?
For example:
The DocType looks like that:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
And if I print it using doc.html() or doc.toString() I get:
<!DOCTYPE html>
If there is no linkebreak in it I get the complete DocType including all information.
What can I do to solve that?
Cheers Bene