From dbf25f1802b49f32ac4330a43814ab43a8d88290 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Sat, 21 Apr 2001 02:38:59 +0000 Subject: [PATCH] fixed a nasty bug in HTMLCheckerImpl.finish() --- .../silverwrist/venice/htmlcheck/impl/HTMLCheckerImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/silverwrist/venice/htmlcheck/impl/HTMLCheckerImpl.java b/src/com/silverwrist/venice/htmlcheck/impl/HTMLCheckerImpl.java index 1dd4a33..16565f6 100644 --- a/src/com/silverwrist/venice/htmlcheck/impl/HTMLCheckerImpl.java +++ b/src/com/silverwrist/venice/htmlcheck/impl/HTMLCheckerImpl.java @@ -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: