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

Re: Tell tidy to only do indenting

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 05 Jan 2007 16:44:26 +0100
To: "howard chen" <howachen@gmail.com>
Cc: "David Koch" <david.koch@xrce.xerox.com>, html-tidy@w3.org
Message-ID: <70ssp2t0c1eklh1nj7sj48id94sba4ue8p@hive.bjoern.hoehrmann.de>

* howard chen wrote:
>> Note that for Tidy an error means it cannot parse the document at all,
>> you get warnings for anything else. That the rendering is different may
>> be caused by various things, for example, Tidy might have added a <!DOC-
>> TYPE> and some browsers change the rendering depending on that. There is
>> no way to let Tidy only change the indentation.
>
>I face the exact same problem...we only want to Tidy to indedent or
>line break the document...but should not modify the tags...

But in order to indent the document Tidy has to understand the structure
of the document. If you have, say <div>...<p>...</div>...</div> you have
nested the tags improperly. Tidy corrects the nesting and pretty prints
the result. If you have properly structured the document, Tidy should
not make changes with major impact on the document. There are a few more
changes Tidy might make that are not yet configurable for which we could
introduce new config options, but Tidy will always restore a sensible
document structure first.
-- 
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 Friday, 5 January 2007 15:44:38 GMT

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