Elvelind Grandin wrote:

> actually. it looks like if the whole file is one line, it stays so.
> but if there are newlines anywhere it starts formatting it.

that's an interesting observation.  here's the output from a simple
load-and-serialize script (using the XML serializer in Kid 0.7.1).  for
each test, the script prints the input and output:

--------------------------------------------------------------------
<div><span/></div>
--------------------------------------------------------------------
<?xml version="1.0" encoding="ascii"?>
<div><span /></div>
--------------------------------------------------------------------

--------------------------------------------------------------------
<div>
<span/></div>
--------------------------------------------------------------------
<?xml version="1.0" encoding="ascii"?>
<div>
<span />
</div>
--------------------------------------------------------------------

--------------------------------------------------------------------
<div>x
<span/></div>
--------------------------------------------------------------------
<?xml version="1.0" encoding="ascii"?>
<div>x
<span /></div>
--------------------------------------------------------------------

--------------------------------------------------------------------
<div> <span/></div>
--------------------------------------------------------------------
<?xml version="1.0" encoding="ascii"?>
<div> <span /> </div>
--------------------------------------------------------------------

--------------------------------------------------------------------
<div> <span/>  <span/></div>
--------------------------------------------------------------------
<?xml version="1.0" encoding="ascii"?>
<div> <span />  <span />  </div>
--------------------------------------------------------------------

looks like Kid's parser leaves whitespace in a buffer somewhere.

</F>

Reply via email to