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

Re: Preventing Tidy from eating spaces

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 03 Feb 2007 06:06:11 +0100
To: Trevor Harmon <trevor@vocaro.com>
Cc: html-tidy@w3.org
Message-ID: <dv58s25c9c4jin540q7brb8ru2s58ks1ik@hive.bjoern.hoehrmann.de>

* Trevor Harmon wrote:
>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,

There is not. The problem here is that all white space in XML documents
is potentially significant, so Tidy could not add or remove any of it,
and consequently not really pretty print it. However, it is designed to
pretty print, so it makes various assumptions about your document. At
times, these assumptions turn out to be incorrect. Patches welcome, but
don't expect this to change any time soon.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Saturday, 3 February 2007 05:06:23 GMT

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