

Add your pictures to your folder in the Thawspace. If I try to change the reset the line spacing in the other tables, all the tables are updated with whatever the last value to be changed is. you keep dragging different panels or double clicking you will not change the. You can see it has changed the line spacing for all of the tables - they are all now 7 pt (12 point is 152400).

_format.line_spacing_rule = WD_LINE_SPACING.EXACTLY Then I try to change the line spacing only in the final table: table = document.tables Table = document.add_table(rows=1, cols=3)įor index, table in enumerate(document.tables): Here is a minimal, reproducible example, creating from scratch a document with three tables: from docx import Documentįrom import WD_LINE_SPACING

I am trying to change the line spacing of a table in an existing document but it changes the line spacing of all the tables in the document.
