On 5/8/07, Scott Cantor <> wrote:
> > What tidy command-line options are best to use?
>
> No idea, I use a Windows program called SimpleTidy. May not even be the same
> thing, I just didn't have a link to that version.
Ah, that may explain why the filename extension (.html/.xhtml) matters
in your case. Does the output file have a DOCTYPE declaration?
At any rate, here's a tidy config file that works for me:
// begin config file for HTML tidy
indent: auto
indent-spaces: 2
wrap: 72
markup: yes
output-xhtml: yes
doctype: loose
output-xml: no
input-xml: no
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
uppercase-tags: no
uppercase-attributes: no
char-encoding: latin1
// end config file for HTML tidy
Note the 'doctype: loose' config parameter. I tried 'doctype: strict'
but you don't even want to know how many validator errors that
produced.
Tom