Preventing Tidy from eating spaces

Trevor Harmon <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.