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 d9709cc commit 9730de4
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 9730de4

Please sign in to comment.