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

Re: How to use tidy?



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.

Tschoeeee

        Roland

-- 
 * roland@spinnaker.de * http://www.spinnaker.de/ *
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com