Merge pull request #384 from seaburg/master

Fix skipping parsing character
This commit is contained in:
Geoff McLane 2016-03-30 14:08:40 +02:00
commit 4b135d9b47
1 changed files with 2 additions and 7 deletions

View File

@ -2748,14 +2748,9 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode )
continue; /* no text so keep going */
}
/* fix for bug 762102 */
if (c == '&')
{
TY_(UngetChar)(c, doc->docIn);
--(lexer->lexsize);
}
/* otherwise treat as CDATA */
TY_(UngetChar)(c, doc->docIn);
lexer->lexsize -= 1;
lexer->state = LEX_CONTENT;
lexer->waswhite = no;
continue;