We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summary partition_html() produces a ListItem element with no text for an empty <li> element or one that contains only whitespace.
partition_html()
ListItem
<li>
To Reproduce
from unstructured.partition.html import partition_html from unstructured.staging.base import elements_to_json html_text = """ <ul> <li></li> <li> \n \t </li> </ul> """ elements = partition_html(text=html_text) print(f"{elements_to_json(elements, indent=2)}")
Expected:
[]
Actual:
[ { "element_id": "5336294a19f32ff03ef80066fbc3e0f7", "metadata": { "category_depth": 1, "filetype": "text/html" }, "text": "", "type": "ListItem" }, { "element_id": "c91476816a43e6f9216a68b58d92076a", "metadata": { "category_depth": 1, "filetype": "text/html" }, "text": "", "type": "ListItem" } ]
Additional context Fixed by #3218. Recorded here to explain ingest test output changes and to inform CHANGELOG.
The text was updated successfully, but these errors were encountered:
scanny
Successfully merging a pull request may close this issue.
Summary
partition_html()
produces aListItem
element with no text for an empty<li>
element or one that contains only whitespace.To Reproduce
Expected:
Actual:
Additional context
Fixed by #3218. Recorded here to explain ingest test output changes and to inform CHANGELOG.
The text was updated successfully, but these errors were encountered: