Is #713 - show-filename to errout when no warnings
This commit is contained in:
parent
c8d3b4a8fb
commit
afcea7c920
|
@ -2489,8 +2489,17 @@ int main( int argc, char** argv )
|
|||
if ( argc > 1 )
|
||||
{
|
||||
htmlfil = argv[1];
|
||||
DEBUG_LOG( SPRTF("Tidying '%s'\n", htmlfil) );
|
||||
if ( tidyOptGetBool(tdoc, TidyEmacs) )
|
||||
#ifdef ENABLE_DEBUG_LOG
|
||||
SPRTF("Tidy: '%s'\n", htmlfil);
|
||||
#else /* !ENABLE_DEBUG_LOG */
|
||||
/* Is #713 - show-filename option */
|
||||
if (tidyOptGetBool(tdoc, TidyShowFilename))
|
||||
{
|
||||
fprintf(errout, "Tidy: '%s'", htmlfil);
|
||||
fprintf(errout, "\n");
|
||||
}
|
||||
#endif /* ENABLE_DEBUG_LOG yes/no */
|
||||
if ( tidyOptGetBool(tdoc, TidyEmacs) || tidyOptGetBool(tdoc, TidyShowFilename))
|
||||
tidySetEmacsFile( tdoc, htmlfil );
|
||||
status = tidyParseFile( tdoc, htmlfil );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue