79831801

Date: 2025-11-27 14:44:29
Score: 1
Natty:
Report link

Sometimes LibreOffice or Word ignore standard width settings. In some cases a better approach is to edit the XML directly

width = Inches(1.0)
grid_cols = table._tbl.tblGrid.findall(qn("w:gridCol"))
grid_cols[0].set(qn('w:w'), str(int(width.twips)))  # twips are the internal unit
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: fromlightbeam