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:

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

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:


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,

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC