Skip to content

Commit

Permalink
fix figure validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Dec 6, 2024
1 parent b012665 commit d2ca7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grobid-core/src/main/java/org/grobid/core/data/Figure.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ public String getTeiId() {
}

public boolean isCompleteForTEI() {
return (StringUtils.isAllBlank(header) || StringUtils.isNotEmpty(caption) || CollectionUtils.isNotEmpty(graphicObjects));
return (StringUtils.isNotBlank(header) || StringUtils.isNotBlank(caption) || CollectionUtils.isNotEmpty(graphicObjects));
}

public String toTEI(GrobidAnalysisConfig config, Document doc, TEIFormatter formatter, List<MarkerType> markerTypes) {
if (isCompleteForTEI()) {
if (!isCompleteForTEI()) {
return null;
}
Element figureElement = XmlBuilderUtils.teiElement("figure");
Expand Down

0 comments on commit d2ca7c9

Please sign in to comment.