Skip to content

Commit d0869dd

Browse files
committed
Is. htacg#487 - Remove duplicated warning output
1 parent 69ade7d commit d0869dd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/lexer.c

+7-4
Original file line numberDiff line numberDiff line change
@@ -2701,10 +2701,9 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode )
27012701
}
27022702

27032703
/*
2704-
We only print this message if there's a missing
2705-
starting hyphen; this comment will be dropped.
2704+
TY_(Report)(doc, NULL, NULL, MALFORMED_COMMENT_DROPPING );
2705+
Warning now done later - see issue #487
27062706
*/
2707-
TY_(Report)(doc, NULL, NULL, MALFORMED_COMMENT_DROPPING );
27082707
}
27092708
else if (c == 'd' || c == 'D')
27102709
{
@@ -2777,7 +2776,11 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode )
27772776
}
27782777

27792778

2780-
TY_(Report)(doc, NULL, NULL, MALFORMED_COMMENT_DROPPING); /* Is. #487 */
2779+
/*
2780+
We only print this message if there's a missing
2781+
starting hyphen; this comment will be dropped.
2782+
*/
2783+
TY_(Report)(doc, NULL, NULL, MALFORMED_COMMENT_DROPPING ); /* Is. #487 */
27812784

27822785
/* else swallow characters up to and including next '>' */
27832786
while ((c = TY_(ReadChar)(doc->docIn)) != '>')

0 commit comments

Comments
 (0)