[nik] stack pop exception in <<<.. case

This commit is contained in:
Gregory.Shrago
2011-12-30 18:13:54 +03:00
parent 655d7278ac
commit 245115807e
@@ -72,7 +72,7 @@ public class HighlightsExtractor {
if (openTag == -1) {
return null;
}
if (text.charAt(openTag + 1) == '<') {
while (text.charAt(openTag + 1) == '<') {
openTag++;
}
if (text.charAt(openTag + 1) == '/') {
@@ -104,7 +104,7 @@ public class HighlightsExtractor {
sb.append(text.substring(index, text.length()));
break;
}
if (text.charAt(from+1) == '<') {
while (text.charAt(from+1) == '<') {
from++;
}
int to = text.indexOf('>', from+1);