Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Serializer.lineSeparator not preserved

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Serializer.lineSeparator not preserved
  • Date: Wed, 23 Nov 2005 15:29:35 -0800

I think the last line of Serializer.setOutputStream(OutputStream out) should read

if (escaper.lineSeparatorSet) setLineSeparator(lineSeparator);

Right now, the lineSeparator would be set even though it wasn't set before, altering whitespace preserving semantics on subsequent output streams.

Wolfgang.




Archive powered by MHonArc 2.6.24.

Top of Page