I'd agree if this were a violation of am specification, but
it's not. If you have read the thread I referred to, you know
that pretty-printing is only loosely specified. This means, in essence, that
implementations can do whatever they like - there is no right or wrong. You can
certainly propose that Xerces change its behavior because you don't like it, but
you'll have a hard time making the case that what it's doing is
incorrect.
That said, this is at least the third time this has come up
recently. Are there people who prefer empty lines between elements in their
pretty-printed output? If not, and if it would be committed, I'd be happy to
make a patch that gets rid of them.
Hi,
thanks for link, but it's not resolve the problem.
Question is: Is any reason for putting double LF to output ? If asnswer is No,
right way is correct Xerces source code, not hack it by overwriting own class
with complicated and hard-maintainable code.
Bye, Lumir
Vanek KXML Editor developer http://www.valachnet.cz/lvanek
Jesse
Pelton wrote:
There's a thread in the mailing list archive that may be relevant. See
http://marc.theaimsgroup.com/?l=xerces-c-dev&m=111047624410742&w=2.
-----Original Message-----
From: Lumir Vanek [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 27, 2005 3:04 PM
To: xerces-c-dev@xml.apache.org
Subject: fgDOMWRTFormatPrettyPrint causes double 0A in output
Hi,
when I use DOMWriter::setFeature(
XMLUni::fgDOMWRTFormatPrettyPrint, true );
after each element, there is 0A 0A (2 x line feed), instead
of 0A what I
expect. This is bug or feature ? I use Xerces-C 2.6.
Regards,
Lumir Vanek,
KXML Editor developer
http://www.valachnet.cz/lvanek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
|