[jdom-interest] XMLOutputter to String produces strange "newlines"
Jason Hunter
jhunter at servlets.com
Sun Oct 27 19:07:46 PST 2002
> I'm using XMLOutputter to convert a newly created JDOM document to a String.
> The thing I found was that between the XML declaration and the doctype and
> between the doctype and the rest of the document three characters have been
> inserted: \r\r\n (instead of \r\n or \n, what would be expected).
It looks like there's one place in XMLOutputter that hard-coded \n
instead of using the lineSeparator variable. I'll fix that.
I notice SAXHandler also uses \n in the internal DTD subset handling. I
wonder what we should do about that.
> My OS is WinNT, I'm using the JDOM version which is distributed with JDK
> 1.4.0-b92.
Are you sure JDOM's coming with the JDK? How exactly?
-jh-
More information about the jdom-interest
mailing list