Handle two continuous START TEXT TAG by throwing Error
* HandBuiltParser is also not giving error when two START_TEXT
are encountered one after the other without the END_TEXT.
* It ignores the second START_TEXT and take the END_TEXT
for the first START_TEXT
@@ -72,6 +72,9 @@ public class HandBuiltParser {
String nextLine = br.readLine();
while (nextLine != null) {
if (inTextBlock) {
+ if (nextLine.indexOf(START_TEXT)>0){
+ break;
+ }
int endText = nextLine.indexOf(END_TEXT);
if (endText >= 0) {
value = value + "\n" + nextLine.substring(0, endText).trim();
