Skip to content

Commit

Permalink
fix possible missing start token position in block
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Nov 13, 2022
1 parent b189a64 commit 3b82c83
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ else if (qName.equals("TextBlock")) {
//page.addBlock(block);
}
block = new Block();
block.setStartToken(tokenizations.size());
//block.setPage(currentPage);
blabla = new StringBuffer();
int imagePos = images.size()-1;
Expand Down Expand Up @@ -393,6 +394,7 @@ public void startElement(String namespaceURI, String localName,
block = new Block();
blabla = new StringBuffer();
nbTokens = 0;
block.setStartToken(tokenizations.size());
//block.setPage(currentPage);
// blabla.append("\n@block\n");
} else if (qName.equals("Illustration")) {
Expand Down

0 comments on commit 3b82c83

Please sign in to comment.