From 96fe83ecf1be96888cf21847168bc0094cb6dbbd Mon Sep 17 00:00:00 2001 From: "n.west" <98110034+rnwst@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:21:40 +0100 Subject: reference.docx: don't left-align table header row See #11019. Previously, centering tables in `reference.docx` would leave the header row left-aligned. Why the OOXML 'standard' would allow table elements to be aligned differently from the rest of the table in the first place is anyone's guess. --- data/docx/word/styles.xml | 7 ------- test/docx/golden/block_quotes.docx | Bin 10691 -> 10692 bytes test/docx/golden/codeblock.docx | Bin 10509 -> 10510 bytes test/docx/golden/comments.docx | Bin 10840 -> 10841 bytes test/docx/golden/custom_style_no_reference.docx | Bin 10611 -> 10609 bytes test/docx/golden/custom_style_preserve.docx | Bin 11237 -> 11236 bytes test/docx/golden/definition_list.docx | Bin 10500 -> 10501 bytes .../docx/golden/document-properties-short-desc.docx | Bin 10513 -> 10515 bytes test/docx/golden/document-properties.docx | Bin 10997 -> 11000 bytes test/docx/golden/headers.docx | Bin 10654 -> 10655 bytes test/docx/golden/image.docx | Bin 27382 -> 27383 bytes test/docx/golden/inline_code.docx | Bin 10450 -> 10451 bytes test/docx/golden/inline_formatting.docx | Bin 10626 -> 10627 bytes test/docx/golden/inline_images.docx | Bin 27382 -> 27383 bytes test/docx/golden/link_in_notes.docx | Bin 10663 -> 10664 bytes test/docx/golden/links.docx | Bin 10841 -> 10842 bytes test/docx/golden/lists.docx | Bin 11033 -> 11034 bytes test/docx/golden/lists_9994.docx | Bin 10787 -> 10788 bytes test/docx/golden/lists_continuing.docx | Bin 10701 -> 10702 bytes test/docx/golden/lists_div_bullets.docx | Bin 10684 -> 10685 bytes test/docx/golden/lists_multiple_initial.docx | Bin 10917 -> 10918 bytes test/docx/golden/lists_restarting.docx | Bin 10698 -> 10699 bytes test/docx/golden/nested_anchors_in_header.docx | Bin 10844 -> 10845 bytes test/docx/golden/notes.docx | Bin 10614 -> 10615 bytes test/docx/golden/raw-blocks.docx | Bin 10543 -> 10544 bytes test/docx/golden/raw-bookmarks.docx | Bin 10682 -> 10683 bytes test/docx/golden/table_one_row.docx | Bin 10521 -> 10522 bytes test/docx/golden/table_with_list_cell.docx | Bin 10971 -> 10972 bytes test/docx/golden/tables-default-widths.docx | Bin 10881 -> 10882 bytes test/docx/golden/tables.docx | Bin 10895 -> 10896 bytes .../docx/golden/tables_separated_with_rawblock.docx | Bin 10518 -> 10519 bytes test/docx/golden/task_list.docx | Bin 10782 -> 10783 bytes test/docx/golden/track_changes_deletion.docx | Bin 10491 -> 10492 bytes test/docx/golden/track_changes_insertion.docx | Bin 10475 -> 10476 bytes test/docx/golden/track_changes_move.docx | Bin 10505 -> 10506 bytes .../golden/track_changes_scrubbed_metadata.docx | Bin 10616 -> 10617 bytes test/docx/golden/unicode.docx | Bin 10467 -> 10468 bytes test/docx/golden/verbatim_subsuper.docx | Bin 10478 -> 10479 bytes 38 files changed, 7 deletions(-) diff --git a/data/docx/word/styles.xml b/data/docx/word/styles.xml index 4569bb1c3..effc926c4 100644 --- a/data/docx/word/styles.xml +++ b/data/docx/word/styles.xml @@ -604,13 +604,6 @@ - - - - - - - diff --git a/test/docx/golden/block_quotes.docx b/test/docx/golden/block_quotes.docx index 46f5b4389..00be50e4d 100644 Binary files a/test/docx/golden/block_quotes.docx and b/test/docx/golden/block_quotes.docx differ diff --git a/test/docx/golden/codeblock.docx b/test/docx/golden/codeblock.docx index 107eb9d51..0f2985ed5 100644 Binary files a/test/docx/golden/codeblock.docx and b/test/docx/golden/codeblock.docx differ diff --git a/test/docx/golden/comments.docx b/test/docx/golden/comments.docx index 83c4c2b64..57dbde327 100644 Binary files a/test/docx/golden/comments.docx and b/test/docx/golden/comments.docx differ diff --git a/test/docx/golden/custom_style_no_reference.docx b/test/docx/golden/custom_style_no_reference.docx index 4d15f9d41..286b79491 100644 Binary files a/test/docx/golden/custom_style_no_reference.docx and b/test/docx/golden/custom_style_no_reference.docx differ diff --git a/test/docx/golden/custom_style_preserve.docx b/test/docx/golden/custom_style_preserve.docx index b477d0876..cd0b9b69a 100644 Binary files a/test/docx/golden/custom_style_preserve.docx and b/test/docx/golden/custom_style_preserve.docx differ diff --git a/test/docx/golden/definition_list.docx b/test/docx/golden/definition_list.docx index 2e0f4bdfb..c3d3e560e 100644 Binary files a/test/docx/golden/definition_list.docx and b/test/docx/golden/definition_list.docx differ diff --git a/test/docx/golden/document-properties-short-desc.docx b/test/docx/golden/document-properties-short-desc.docx index 6cda12202..3ca95199f 100644 Binary files a/test/docx/golden/document-properties-short-desc.docx and b/test/docx/golden/document-properties-short-desc.docx differ diff --git a/test/docx/golden/document-properties.docx b/test/docx/golden/document-properties.docx index cb41dd194..537a6e5c0 100644 Binary files a/test/docx/golden/document-properties.docx and b/test/docx/golden/document-properties.docx differ diff --git a/test/docx/golden/headers.docx b/test/docx/golden/headers.docx index 51e7e0b4e..64a9d7a01 100644 Binary files a/test/docx/golden/headers.docx and b/test/docx/golden/headers.docx differ diff --git a/test/docx/golden/image.docx b/test/docx/golden/image.docx index 095243c4b..cea29628a 100644 Binary files a/test/docx/golden/image.docx and b/test/docx/golden/image.docx differ diff --git a/test/docx/golden/inline_code.docx b/test/docx/golden/inline_code.docx index 97db977dd..24cfa3420 100644 Binary files a/test/docx/golden/inline_code.docx and b/test/docx/golden/inline_code.docx differ diff --git a/test/docx/golden/inline_formatting.docx b/test/docx/golden/inline_formatting.docx index 9403f236a..c62f2d8cc 100644 Binary files a/test/docx/golden/inline_formatting.docx and b/test/docx/golden/inline_formatting.docx differ diff --git a/test/docx/golden/inline_images.docx b/test/docx/golden/inline_images.docx index d221add98..6b2cf658c 100644 Binary files a/test/docx/golden/inline_images.docx and b/test/docx/golden/inline_images.docx differ diff --git a/test/docx/golden/link_in_notes.docx b/test/docx/golden/link_in_notes.docx index 708ff0551..42636e479 100644 Binary files a/test/docx/golden/link_in_notes.docx and b/test/docx/golden/link_in_notes.docx differ diff --git a/test/docx/golden/links.docx b/test/docx/golden/links.docx index b74bfc5b2..e51a54f6f 100644 Binary files a/test/docx/golden/links.docx and b/test/docx/golden/links.docx differ diff --git a/test/docx/golden/lists.docx b/test/docx/golden/lists.docx index 2610ff19e..fbea56b38 100644 Binary files a/test/docx/golden/lists.docx and b/test/docx/golden/lists.docx differ diff --git a/test/docx/golden/lists_9994.docx b/test/docx/golden/lists_9994.docx index 0be855f42..2782bf0fa 100644 Binary files a/test/docx/golden/lists_9994.docx and b/test/docx/golden/lists_9994.docx differ diff --git a/test/docx/golden/lists_continuing.docx b/test/docx/golden/lists_continuing.docx index 9e65699e8..b21bdfbfd 100644 Binary files a/test/docx/golden/lists_continuing.docx and b/test/docx/golden/lists_continuing.docx differ diff --git a/test/docx/golden/lists_div_bullets.docx b/test/docx/golden/lists_div_bullets.docx index b8f81e461..07fbf73ba 100644 Binary files a/test/docx/golden/lists_div_bullets.docx and b/test/docx/golden/lists_div_bullets.docx differ diff --git a/test/docx/golden/lists_multiple_initial.docx b/test/docx/golden/lists_multiple_initial.docx index 9f46351dd..a74386f98 100644 Binary files a/test/docx/golden/lists_multiple_initial.docx and b/test/docx/golden/lists_multiple_initial.docx differ diff --git a/test/docx/golden/lists_restarting.docx b/test/docx/golden/lists_restarting.docx index 71d98d3a7..7d9af8fb8 100644 Binary files a/test/docx/golden/lists_restarting.docx and b/test/docx/golden/lists_restarting.docx differ diff --git a/test/docx/golden/nested_anchors_in_header.docx b/test/docx/golden/nested_anchors_in_header.docx index 4641585a7..333eac410 100644 Binary files a/test/docx/golden/nested_anchors_in_header.docx and b/test/docx/golden/nested_anchors_in_header.docx differ diff --git a/test/docx/golden/notes.docx b/test/docx/golden/notes.docx index c9a5d2b14..a8dd65878 100644 Binary files a/test/docx/golden/notes.docx and b/test/docx/golden/notes.docx differ diff --git a/test/docx/golden/raw-blocks.docx b/test/docx/golden/raw-blocks.docx index 5588fda63..aff753ade 100644 Binary files a/test/docx/golden/raw-blocks.docx and b/test/docx/golden/raw-blocks.docx differ diff --git a/test/docx/golden/raw-bookmarks.docx b/test/docx/golden/raw-bookmarks.docx index fe3787ddd..5e2f78177 100644 Binary files a/test/docx/golden/raw-bookmarks.docx and b/test/docx/golden/raw-bookmarks.docx differ diff --git a/test/docx/golden/table_one_row.docx b/test/docx/golden/table_one_row.docx index 292e7c654..3570f8668 100644 Binary files a/test/docx/golden/table_one_row.docx and b/test/docx/golden/table_one_row.docx differ diff --git a/test/docx/golden/table_with_list_cell.docx b/test/docx/golden/table_with_list_cell.docx index d09434167..286070759 100644 Binary files a/test/docx/golden/table_with_list_cell.docx and b/test/docx/golden/table_with_list_cell.docx differ diff --git a/test/docx/golden/tables-default-widths.docx b/test/docx/golden/tables-default-widths.docx index 422d394dd..e8e72c391 100644 Binary files a/test/docx/golden/tables-default-widths.docx and b/test/docx/golden/tables-default-widths.docx differ diff --git a/test/docx/golden/tables.docx b/test/docx/golden/tables.docx index 8b75b1b46..c126bf71b 100644 Binary files a/test/docx/golden/tables.docx and b/test/docx/golden/tables.docx differ diff --git a/test/docx/golden/tables_separated_with_rawblock.docx b/test/docx/golden/tables_separated_with_rawblock.docx index 9ccdff591..060af6da6 100644 Binary files a/test/docx/golden/tables_separated_with_rawblock.docx and b/test/docx/golden/tables_separated_with_rawblock.docx differ diff --git a/test/docx/golden/task_list.docx b/test/docx/golden/task_list.docx index 55c7bad11..ee7674392 100644 Binary files a/test/docx/golden/task_list.docx and b/test/docx/golden/task_list.docx differ diff --git a/test/docx/golden/track_changes_deletion.docx b/test/docx/golden/track_changes_deletion.docx index 156641eb3..d75903032 100644 Binary files a/test/docx/golden/track_changes_deletion.docx and b/test/docx/golden/track_changes_deletion.docx differ diff --git a/test/docx/golden/track_changes_insertion.docx b/test/docx/golden/track_changes_insertion.docx index e764b7106..cadef7f74 100644 Binary files a/test/docx/golden/track_changes_insertion.docx and b/test/docx/golden/track_changes_insertion.docx differ diff --git a/test/docx/golden/track_changes_move.docx b/test/docx/golden/track_changes_move.docx index 2835b3bed..f56eb4185 100644 Binary files a/test/docx/golden/track_changes_move.docx and b/test/docx/golden/track_changes_move.docx differ diff --git a/test/docx/golden/track_changes_scrubbed_metadata.docx b/test/docx/golden/track_changes_scrubbed_metadata.docx index d8f39305b..ee78035cc 100644 Binary files a/test/docx/golden/track_changes_scrubbed_metadata.docx and b/test/docx/golden/track_changes_scrubbed_metadata.docx differ diff --git a/test/docx/golden/unicode.docx b/test/docx/golden/unicode.docx index 33dcbe04e..c36954263 100644 Binary files a/test/docx/golden/unicode.docx and b/test/docx/golden/unicode.docx differ diff --git a/test/docx/golden/verbatim_subsuper.docx b/test/docx/golden/verbatim_subsuper.docx index 4909c2cea..493595fd6 100644 Binary files a/test/docx/golden/verbatim_subsuper.docx and b/test/docx/golden/verbatim_subsuper.docx differ -- cgit v1.2.3