pqzx / html2docx

Convert html to docx
MIT License
69 stars 49 forks source link

Do not delete content of a non-empty cell. #23

Closed ghjklw closed 2 years ago

ghjklw commented 2 years ago

When using add_html_to_cell, the function to delete an unwanted paragraph should only be called if the paragraph is indeed unwanted, i.e. if it is an empty paragraph automatically created when the cell was created.

pqzx commented 2 years ago

Hey @ghjklw, nice catch and thanks for PR!