Preventing Tidy from eating spaces

Consider this simple XML file:

<article>
<simpara><quote>text</quote>text</simpara>
<simpara><quote>text</quote> text</simpara>
</article>

Note the space before the final "text".

When I run this file through the xmllint utility, that space is  
preserved, as expected.

But when I use W3C's tidy utility, it eats that space. For example,  
running "tidy -xml test.xml" produces:

<article>
<simpara>
<quote>text</quote>text</simpara>
<simpara>
<quote>text</quote>text</simpara>
</article>

I've tried altering several of tidy's configuration options, but  
nothing I do tells tidy to preserve that space. Is there an option  
I'm missing that will do the trick? Thanks,

Trevor

Received on Saturday, 3 February 2007 04:49:25 UTC