From a7a4cd6a1607ae06645f88734229f4d78811c36a Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Mon, 15 May 2017 16:42:49 +0200 Subject: [PATCH] Issue #456 - avoid head work if showing body only --- src/clean.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/clean.c b/src/clean.c index 0abf53a..b4e9a38 100644 --- a/src/clean.c +++ b/src/clean.c @@ -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' */