From 0db5ca60b1a64ffbbeeea0f8161edf4828569bc5 Mon Sep 17 00:00:00 2001 From: ler762 Date: Thu, 22 Nov 2018 12:13:58 -0500 Subject: [PATCH] Wait until after reading all the init files and paramerers before calling AdjustConfig Calling AdjustConfig right after reading an init file tends to break things since tidy might not have the all of the config settings yet. It needs to wait until all the init files and parameters have been processed so that it can make it's adjustments based on the full config. --- src/config.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/config.c b/src/config.c index f5e837978..67fc804a5 100644 --- a/src/config.c +++ b/src/config.c @@ -1056,8 +1056,6 @@ int TY_(ParseConfigFileEnc)( TidyDocImpl* doc, ctmbstr file, ctmbstr charenc ) if ( fname != (tmbstr) file ) TidyDocFree( doc, fname ); - AdjustConfig( doc ); - /* any new config errors? If so, return warning status. */ return (doc->optionErrors > opterrs ? 1 : 0); }