fixed a nasty bug in HTMLCheckerImpl.finish()

This commit is contained in:
Eric J. Bowersox 2001-04-21 02:38:59 +00:00
parent 87811da831
commit dbf25f1802

View File

@ -834,6 +834,7 @@ class HTMLCheckerImpl implements HTMLChecker, HTMLCheckerBackend, RewriterServic
if (config.getProcessParens())
{ // we're going into Parens mode...
doFlushString();
paren_level = 0;
state = ST_PAREN;
} // end if
@ -1011,9 +1012,11 @@ class HTMLCheckerImpl implements HTMLChecker, HTMLCheckerBackend, RewriterServic
// This is the "end parse" loop, in which we resolve any funny state the parser has
// found itself in and clear out the internal buffers.
boolean running = false;
boolean running;
do
{ // what we do depends on the parser state...
running = false; // make sure we stop unless running is set to true here
switch (state)
{
case ST_WHITESPACE: