Skip to content

Commit

Permalink
avoid adding newlines at beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 17, 2024
1 parent 103b756 commit bd93a61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected static List<String> getAffiliationBlocksFromSegments(List<List<LayoutT
// if we have an offset shit, we introduce a segmentation of the affiliation block
LayoutToken startToken = tokenizationSegment.get(0);
int start = startToken.getOffset();
if (start-end > 2)
if (start-end > 2 && end > 0)
affiliationBlocks.add("\n");

for(LayoutToken tok : tokenizationSegment) {
Expand Down

0 comments on commit bd93a61

Please sign in to comment.