W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2007

Preventing Tidy from eating spaces

From: Trevor Harmon <trevor@vocaro.com>
Date: Fri, 2 Feb 2007 16:46:15 -0800
Message-Id: <55166D18-EAC8-4C0A-AC89-E5C648AE21FC@vocaro.com>
To: html-tidy@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:56 GMT