[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: How to use tidy?

On Tue, 7 Mar 2000, Roland Rosenfeld wrote:

> I wrote:
> > > why don't you use the -E option of wml
> > As I wrote in my initial message, the -E option doesn't seem to be a
> > real filter (which writes the output to the generated html file), but
> > both the generated HTML code (on stdout) as well the error messages of
> > tidy (on stderr) are written on the screen.  So the changes of tidy
> > doesn't have any effect on the generated HTML code and I cannot read
> > the error messages of tidy, because most of the screen is filled with
> > the HTML code.
> I just found out, that 
> -E 'tidy -mq'
> in my .wmlrc seems to do nearly what I expect.
> Now I only have to write a wrapper, which changes the exit value of
> tidy (at the moment it terminates with 1 on warnings)...
> But I still think, that there should be some more elegant way to do
> so, otherwise tidy doesn't need to be installed as wml_aux_tidy.

When reading this thread i firstly agree.  After some deeper thoughts,
i believe the current situation is not so bad.  There should be a note
in documentation explaining how to use post-processors (so called epilog
It seems that tidy is very configurable, you could try
   -E 'tidy -f /path/to/tidy.conf'

Denis Barbier
WML Maintainer

Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com