Actually, we should only show labels on reports, not dialogue.

This commit is contained in:
Jim Derry 2017-10-08 11:30:29 -04:00
parent 0548e67fa5
commit 2e58434e8d

View file

@ -156,7 +156,7 @@ static TidyMessageImpl *tidyMessageCreateInitV( TidyDocImpl *doc,
result->messagePos, result->messagePrefix,
result->message);
if ( cfgBool(doc, TidySquelchShow) == yes )
if ( ( cfgBool(doc, TidySquelchShow) == yes ) && level <= TidyFatal )
{
TY_(tmbsnprintf)(result->messageOutputDefault, sizeMessageBuf, "%s (%s)", result->messageOutputDefault, TY_(tidyErrorCodeAsKey)(code) );
TY_(tmbsnprintf)(result->messageOutput, sizeMessageBuf, "%s (%s)", result->messageOutput, TY_(tidyErrorCodeAsKey)(code) );