W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

Re: Tidy from Aug 04 not updating html file.

From: J. David Bryan <jdbryan@acm.org>
Date: Mon, 20 Nov 2000 14:52:50 -0500
Message-Id: <200011201952.OAA27117@mail.bcpl.net>
To: HTML Tidy List <html-tidy@w3.org>
On 20 Nov 2000, at 13:02, Larry W. Virden wrote:

> I'm rather surprised that there isn't a simple option to override things
> - even when I provide a -config /dev/null, it appears that tidy wants to
> use that HTML_TIDY variable. 

The various configuration file options accumulate, if I recall correctly, 
so "-config /dev/null" doesn't change anything because there aren't any 
options specified.  The order in which configuration options are applied 
is: compiled-in default, then environment variable OR then ".tidyrc", then 
command-line options in order of appearance, including the "config" option.

Note that if the environment variable is defined, ".tidyrc" will not be 
checked.


> I wonder if the argument setting is really working as expected; I 
> would have expected command line flags to override everything 
> else - AND I would expect a command line flag to turn on or off 
> the generation of that markup argument.

If you use "--markup yes" from the command line, that would override a 
previous "markup: no" in any configuration file previously encountered.  
Also, the "-errors" and "-e" command option is the same as "markup: no".


> In general, I don't want tidy messing around moving tags about in my
> file just to make things look pretty.  I do however want tidy to fix
> broken code. 

Wouldn't that just be a case of selecting the desired options in your 
configuration file?


> another nice feature would be a 'show me what values you are using'
> option.  That way, one could tell after having gone thru a variety of
> files exactly what parameters had been set... 

Agreed.

                                      -- Dave
Received on Monday, 20 November 2000 14:52:57 GMT

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