fix: error when parsing tables with only headers in docx/pdf (#271)
This commit is contained in:
parent
0d83a5e7bc
commit
02b4171576
|
|
@ -249,6 +249,11 @@ func formatTablesInDocument(input []*schema.Document) (output []*schema.Document
|
|||
values = append(values, col.Name)
|
||||
}
|
||||
write(values)
|
||||
if colOnly, err := document.GetDocumentColumnsOnly(doc); err != nil {
|
||||
return nil, err
|
||||
} else if colOnly {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
data, err := document.GetDocumentColumnData(doc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue