Skip to content

Resolve FutureWarning #2

Description

@ron8mcr

Using of html_to_docx.create_document_from_html causes runtime warning:

html_to_docx/tag_dispatchers/__init__.py:15: FutureWarning: Truth-testing of elements was a source of confusion and will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
  if not element.getparent():

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions