src/java.desktop/share/classes/javax/swing/text/html/parser/Parser.java

Print this page

        

@@ -2117,13 +2117,16 @@
                     insideComment = false;
                 }
             }
 
             /* To account for extra read()'s that happened */
+            if(i > 0) {
             for (int j = 0; j < i; j++) {
                 addString(charsToAdd[j]);
             }
+                continue;
+            }
             switch (ch) {
             case -1:
                 error("eof.script");
                 return;
             case '\n':