Issue #456 - avoid head work if showing body only

This commit is contained in:
Geoff McLane 2017-05-15 16:42:49 +02:00
parent f310f1d5de
commit a7a4cd6a16
1 changed files with 2 additions and 0 deletions

View File

@ -2321,6 +2321,8 @@ Bool TY_(TidyMetaCharset)(TidyDocImpl* doc)
if (outenc == ISO2022)
return no;
#endif
if (cfgAutoBool(doc, TidyBodyOnly) == TidyYesState)
return no; /* nothing to do here if showing body only */
tidyBufInit(&charsetString);
/* Set up the content test 'charset=value' */