Raw / no-fix / beatifier mode ?

"Nathaniel Brown" <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
I am looking for an option that I can run tidy against a html file to
simply beautify it. Right now when I run it, I see the warnings, and
it ends up fixing the HTML code. So if I have a missing div, or what
have you, it will add it or fix it.

Reason I ask is i want proper indenting in order to track down where
the missing div is. Preferablly, if it was able to determine the wrong
order of closing tags, it would use the proper nesting to indent the
raw code.

So if I have something like...

INPUT
---
<div id="one"><span><div id="two"><a>link</a></span></div>

OUTPUT
---
<div id="one">
   <span>
       <div id="two">
           <a>link</a>
   </span>
</div>

It wouldn't error out or warn me that id="one" is missing a closing
div as it would know that the first

Any ideas? Is Tidy the right solution for this task?

Nathaniel.

-- 
Nathaniel Steven Henry Brown

Toll Free: 1-877-446-4647
Vancouver: 604-724-6624
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.