Python-docx, how to set cell width in tables?
Short answer: set cell width individually. for cell in table.columns[0].cells: cell.width = Inches(0.5) python-docx does what you tell it to do when you set column width. The problem is that Word ignores it. Other clients, like LibreOffice, respect the column width setting. A .docx file is in XML format (hence the ‘x’ suffix in the … Read more