Skip to content

Commit

Permalink
[Fix] Exclude empty cells in HTML files similar to Excel handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodionnv authored and blcham committed Aug 14, 2024
1 parent 7e5360c commit a308b3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private List<Statement> getRowStatementsFromRow(Element row,int rowNumber, Strin
cellColSpan.get(colNumber).getRight()));
colNumber += cellColSpan.get(colNumber).getRight();
}
statements.add(createRowResource(cell.html(),rowNumber,outputColumns.get(colNumber),tableSchema));
if(cell.hasText())statements.add(createRowResource(cell.html(),rowNumber,outputColumns.get(colNumber),tableSchema));
int colspan = parseInt(cell.attr("colspan"), 1);
int rowspan = parseInt(cell.attr("rowspan"), 1);
cellColSpan.set(colNumber, new Pair<>(rowspan-1,colspan));
Expand Down

0 comments on commit a308b3a

Please sign in to comment.