Migrated reports using formatter formatCustomTagDetected.
This commit is contained in:
parent
0c8f684a4b
commit
66e4d1f8e6
|
@ -467,21 +467,25 @@ TidyMessageImpl *formatCustomTagDetected(TidyDocImpl* doc, Node *element, Node *
|
||||||
|
|
||||||
TagToString(element, elemdesc, sizeof(elemdesc));
|
TagToString(element, elemdesc, sizeof(elemdesc));
|
||||||
|
|
||||||
switch ( cfg( doc, TidyUseCustomTags ) )
|
switch ( code )
|
||||||
{
|
{
|
||||||
case TidyCustomBlocklevel:
|
case CUSTOM_TAG_DETECTED:
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMBLOCKLEVEL_STRING );
|
switch ( cfg( doc, TidyUseCustomTags ) )
|
||||||
break;
|
{
|
||||||
case TidyCustomEmpty:
|
case TidyCustomBlocklevel:
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMEMPTY_STRING );
|
tagtype = tidyLocalizedString( TIDYCUSTOMBLOCKLEVEL_STRING );
|
||||||
break;
|
break;
|
||||||
case TidyCustomInline:
|
case TidyCustomEmpty:
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMINLINE_STRING );
|
tagtype = tidyLocalizedString( TIDYCUSTOMEMPTY_STRING );
|
||||||
break;
|
break;
|
||||||
case TidyCustomPre:
|
case TidyCustomInline:
|
||||||
default:
|
tagtype = tidyLocalizedString( TIDYCUSTOMINLINE_STRING );
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMPRE_STRING );
|
break;
|
||||||
break;
|
case TidyCustomPre:
|
||||||
|
default:
|
||||||
|
tagtype = tidyLocalizedString( TIDYCUSTOMPRE_STRING );
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TY_(tidyMessageCreateWithNode)(doc, element, code, TidyInfo, elemdesc, tagtype );
|
return TY_(tidyMessageCreateWithNode)(doc, element, code, TidyInfo, elemdesc, tagtype );
|
||||||
|
@ -818,30 +822,6 @@ void TY_(ReportNotice)(TidyDocImpl* doc, Node *element, Node *node, uint code)
|
||||||
message = TY_(tidyMessageCreateWithNode)(doc, node, code, TidyWarning, nodedesc, HTMLVersion( doc ) );
|
message = TY_(tidyMessageCreateWithNode)(doc, node, code, TidyWarning, nodedesc, HTMLVersion( doc ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case CUSTOM_TAG_DETECTED:
|
|
||||||
TagToString(element, elemdesc, sizeof(elemdesc));
|
|
||||||
|
|
||||||
switch ( cfg( doc, TidyUseCustomTags ) )
|
|
||||||
{
|
|
||||||
case TidyCustomBlocklevel:
|
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMBLOCKLEVEL_STRING );
|
|
||||||
break;
|
|
||||||
case TidyCustomEmpty:
|
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMEMPTY_STRING );
|
|
||||||
break;
|
|
||||||
case TidyCustomInline:
|
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMINLINE_STRING );
|
|
||||||
break;
|
|
||||||
case TidyCustomPre:
|
|
||||||
default:
|
|
||||||
tagtype = tidyLocalizedString( TIDYCUSTOMPRE_STRING );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
message = TY_(tidyMessageCreateWithNode)(doc, element, code, TidyInfo, elemdesc, tagtype );
|
|
||||||
break;
|
|
||||||
|
|
||||||
|
|
||||||
case ELEMENT_VERS_MISMATCH_ERROR:
|
case ELEMENT_VERS_MISMATCH_ERROR:
|
||||||
message = TY_(tidyMessageCreateWithNode)(doc, node, code, TidyError, nodedesc, HTMLVersion( doc ) );
|
message = TY_(tidyMessageCreateWithNode)(doc, node, code, TidyError, nodedesc, HTMLVersion( doc ) );
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -581,7 +581,7 @@ Bool TY_(FindTag)( TidyDocImpl* doc, Node *node )
|
||||||
|
|
||||||
/* Output a message the first time we encounter an autonomous custom
|
/* Output a message the first time we encounter an autonomous custom
|
||||||
tag. This applies despite the HTML5 mode. */
|
tag. This applies despite the HTML5 mode. */
|
||||||
TY_(ReportNotice)(doc, node, node, CUSTOM_TAG_DETECTED);
|
TY_(Report)(doc, node, node, CUSTOM_TAG_DETECTED);
|
||||||
|
|
||||||
return yes;
|
return yes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue