Inserting a table into a known table with docx
Good day all,
preserve numbered list index using python-docs and docx2python
I am working on a python3 script that converts a word docx to a html file. When converting numbered lists, I am having difficulty preserving the original number in a numbered list. I have attached an example of what the script is doing below.
Group a paragraph and a table so they don’t get split across pages
I am trying to add a caption for a table and then immediately after, add a table. Sometimes the table and caption get split across multiple pages because of table size, etc. Is there anything similar to https://python-docx.readthedocs.io/en/latest/api/text.html#docx.text.parfmt.ParagraphFormat.keep_together that can be used with both paragraphs and tables.