Skip to Content.
Sympa Menu

xom-interest - Re: [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: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Serializer.lineSeparator not preserved
  • Date: Thu, 24 Nov 2005 06:58:55 -0500

Wolfgang Hoschek wrote:
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.


I'll look at this. Do you happen to have a test case that shows what should happen and what does happen? The problem is not immediately apparent to me from this report (but maybe that's just because I haven't had my coffee yet this morning.)

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page