fix: preserve table row boundaries
28
5mo ago+122+122+012345678901234567890123456789-36-36-01234567890123456789
Summary
- Preserve row boundaries in
HtmlTable.textby joining cell text per row and separating rows with blank lines. - Update CSV/TSV/XLSX table text expectations and add unit coverage for blank-row suppression.
- Fixes #4235
Testing
uv run --no-sync ruff format --check unstructured/common/html_table.py test_unstructured/common/test_html_table.py test_unstructured/partition/test_constants.py test_unstructured/partition/test_csv.py test_unstructured/partition/test_tsv.py test_unstructured/partition/test_xlsx.py && uv run --no-sync ruff check unstructured/common/html_table.py test_unstructured/common/test_html_table.py test_unstructured/partition/test_constants.py test_unstructured/partition/test_csv.py test_unstructured/partition/test_tsv.py test_unstructured/partition/test_xlsx.pyuv run --no-sync pytest test_unstructured/common/test_html_table.py test_unstructured/partition/test_csv.py test_unstructured/partition/test_tsv.py test_unstructured/partition/test_xlsx.py -q
Note
scripts/version-sync.sh -c -f unstructured/__version__.py semvercould not complete locally on macOS because the script requires GNU sed >= 4.3;CHANGELOG.mdandunstructured/__version__.pywere manually synced to0.23.3.