aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn.west <[email protected]>2025-08-04 20:21:40 +0100
committerJohn MacFarlane <[email protected]>2025-08-04 15:07:58 -0700
commit96fe83ecf1be96888cf21847168bc0094cb6dbbd (patch)
tree8a1acc1ccd5028270195be9665f0818d409a67cc
parentc1a4ae1abb874206b714ac4355263e0ddcfc88b9 (diff)
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.
-rw-r--r--data/docx/word/styles.xml7
-rw-r--r--test/docx/golden/block_quotes.docxbin10691 -> 10692 bytes
-rw-r--r--test/docx/golden/codeblock.docxbin10509 -> 10510 bytes
-rw-r--r--test/docx/golden/comments.docxbin10840 -> 10841 bytes
-rw-r--r--test/docx/golden/custom_style_no_reference.docxbin10611 -> 10609 bytes
-rw-r--r--test/docx/golden/custom_style_preserve.docxbin11237 -> 11236 bytes
-rw-r--r--test/docx/golden/definition_list.docxbin10500 -> 10501 bytes
-rw-r--r--test/docx/golden/document-properties-short-desc.docxbin10513 -> 10515 bytes
-rw-r--r--test/docx/golden/document-properties.docxbin10997 -> 11000 bytes
-rw-r--r--test/docx/golden/headers.docxbin10654 -> 10655 bytes
-rw-r--r--test/docx/golden/image.docxbin27382 -> 27383 bytes
-rw-r--r--test/docx/golden/inline_code.docxbin10450 -> 10451 bytes
-rw-r--r--test/docx/golden/inline_formatting.docxbin10626 -> 10627 bytes
-rw-r--r--test/docx/golden/inline_images.docxbin27382 -> 27383 bytes
-rw-r--r--test/docx/golden/link_in_notes.docxbin10663 -> 10664 bytes
-rw-r--r--test/docx/golden/links.docxbin10841 -> 10842 bytes
-rw-r--r--test/docx/golden/lists.docxbin11033 -> 11034 bytes
-rw-r--r--test/docx/golden/lists_9994.docxbin10787 -> 10788 bytes
-rw-r--r--test/docx/golden/lists_continuing.docxbin10701 -> 10702 bytes
-rw-r--r--test/docx/golden/lists_div_bullets.docxbin10684 -> 10685 bytes
-rw-r--r--test/docx/golden/lists_multiple_initial.docxbin10917 -> 10918 bytes
-rw-r--r--test/docx/golden/lists_restarting.docxbin10698 -> 10699 bytes
-rw-r--r--test/docx/golden/nested_anchors_in_header.docxbin10844 -> 10845 bytes
-rw-r--r--test/docx/golden/notes.docxbin10614 -> 10615 bytes
-rw-r--r--test/docx/golden/raw-blocks.docxbin10543 -> 10544 bytes
-rw-r--r--test/docx/golden/raw-bookmarks.docxbin10682 -> 10683 bytes
-rw-r--r--test/docx/golden/table_one_row.docxbin10521 -> 10522 bytes
-rw-r--r--test/docx/golden/table_with_list_cell.docxbin10971 -> 10972 bytes
-rw-r--r--test/docx/golden/tables-default-widths.docxbin10881 -> 10882 bytes
-rw-r--r--test/docx/golden/tables.docxbin10895 -> 10896 bytes
-rw-r--r--test/docx/golden/tables_separated_with_rawblock.docxbin10518 -> 10519 bytes
-rw-r--r--test/docx/golden/task_list.docxbin10782 -> 10783 bytes
-rw-r--r--test/docx/golden/track_changes_deletion.docxbin10491 -> 10492 bytes
-rw-r--r--test/docx/golden/track_changes_insertion.docxbin10475 -> 10476 bytes
-rw-r--r--test/docx/golden/track_changes_move.docxbin10505 -> 10506 bytes
-rw-r--r--test/docx/golden/track_changes_scrubbed_metadata.docxbin10616 -> 10617 bytes
-rw-r--r--test/docx/golden/unicode.docxbin10467 -> 10468 bytes
-rw-r--r--test/docx/golden/verbatim_subsuper.docxbin10478 -> 10479 bytes
38 files changed, 0 insertions, 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 @@
</w:tblCellMar>
</w:tblPr>
<w:tblStylePr w:type="firstRow">
- <w:tblPr>
- <w:jc w:val="left"/>
- <w:tblInd w:w="0" w:type="dxa"/>
- </w:tblPr>
- <w:trPr>
- <w:jc w:val="left"/>
- </w:trPr>
<w:tcPr>
<w:tcBorders>
<w:bottom w:val="single"/>
diff --git a/test/docx/golden/block_quotes.docx b/test/docx/golden/block_quotes.docx
index 46f5b4389..00be50e4d 100644
--- a/test/docx/golden/block_quotes.docx
+++ b/test/docx/golden/block_quotes.docx
Binary files differ
diff --git a/test/docx/golden/codeblock.docx b/test/docx/golden/codeblock.docx
index 107eb9d51..0f2985ed5 100644
--- a/test/docx/golden/codeblock.docx
+++ b/test/docx/golden/codeblock.docx
Binary files differ
diff --git a/test/docx/golden/comments.docx b/test/docx/golden/comments.docx
index 83c4c2b64..57dbde327 100644
--- a/test/docx/golden/comments.docx
+++ b/test/docx/golden/comments.docx
Binary files 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
--- a/test/docx/golden/custom_style_no_reference.docx
+++ b/test/docx/golden/custom_style_no_reference.docx
Binary files differ
diff --git a/test/docx/golden/custom_style_preserve.docx b/test/docx/golden/custom_style_preserve.docx
index b477d0876..cd0b9b69a 100644
--- a/test/docx/golden/custom_style_preserve.docx
+++ b/test/docx/golden/custom_style_preserve.docx
Binary files differ
diff --git a/test/docx/golden/definition_list.docx b/test/docx/golden/definition_list.docx
index 2e0f4bdfb..c3d3e560e 100644
--- a/test/docx/golden/definition_list.docx
+++ b/test/docx/golden/definition_list.docx
Binary files 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
--- a/test/docx/golden/document-properties-short-desc.docx
+++ b/test/docx/golden/document-properties-short-desc.docx
Binary files differ
diff --git a/test/docx/golden/document-properties.docx b/test/docx/golden/document-properties.docx
index cb41dd194..537a6e5c0 100644
--- a/test/docx/golden/document-properties.docx
+++ b/test/docx/golden/document-properties.docx
Binary files differ
diff --git a/test/docx/golden/headers.docx b/test/docx/golden/headers.docx
index 51e7e0b4e..64a9d7a01 100644
--- a/test/docx/golden/headers.docx
+++ b/test/docx/golden/headers.docx
Binary files differ
diff --git a/test/docx/golden/image.docx b/test/docx/golden/image.docx
index 095243c4b..cea29628a 100644
--- a/test/docx/golden/image.docx
+++ b/test/docx/golden/image.docx
Binary files differ
diff --git a/test/docx/golden/inline_code.docx b/test/docx/golden/inline_code.docx
index 97db977dd..24cfa3420 100644
--- a/test/docx/golden/inline_code.docx
+++ b/test/docx/golden/inline_code.docx
Binary files differ
diff --git a/test/docx/golden/inline_formatting.docx b/test/docx/golden/inline_formatting.docx
index 9403f236a..c62f2d8cc 100644
--- a/test/docx/golden/inline_formatting.docx
+++ b/test/docx/golden/inline_formatting.docx
Binary files differ
diff --git a/test/docx/golden/inline_images.docx b/test/docx/golden/inline_images.docx
index d221add98..6b2cf658c 100644
--- a/test/docx/golden/inline_images.docx
+++ b/test/docx/golden/inline_images.docx
Binary files differ
diff --git a/test/docx/golden/link_in_notes.docx b/test/docx/golden/link_in_notes.docx
index 708ff0551..42636e479 100644
--- a/test/docx/golden/link_in_notes.docx
+++ b/test/docx/golden/link_in_notes.docx
Binary files differ
diff --git a/test/docx/golden/links.docx b/test/docx/golden/links.docx
index b74bfc5b2..e51a54f6f 100644
--- a/test/docx/golden/links.docx
+++ b/test/docx/golden/links.docx
Binary files differ
diff --git a/test/docx/golden/lists.docx b/test/docx/golden/lists.docx
index 2610ff19e..fbea56b38 100644
--- a/test/docx/golden/lists.docx
+++ b/test/docx/golden/lists.docx
Binary files differ
diff --git a/test/docx/golden/lists_9994.docx b/test/docx/golden/lists_9994.docx
index 0be855f42..2782bf0fa 100644
--- a/test/docx/golden/lists_9994.docx
+++ b/test/docx/golden/lists_9994.docx
Binary files differ
diff --git a/test/docx/golden/lists_continuing.docx b/test/docx/golden/lists_continuing.docx
index 9e65699e8..b21bdfbfd 100644
--- a/test/docx/golden/lists_continuing.docx
+++ b/test/docx/golden/lists_continuing.docx
Binary files differ
diff --git a/test/docx/golden/lists_div_bullets.docx b/test/docx/golden/lists_div_bullets.docx
index b8f81e461..07fbf73ba 100644
--- a/test/docx/golden/lists_div_bullets.docx
+++ b/test/docx/golden/lists_div_bullets.docx
Binary files differ
diff --git a/test/docx/golden/lists_multiple_initial.docx b/test/docx/golden/lists_multiple_initial.docx
index 9f46351dd..a74386f98 100644
--- a/test/docx/golden/lists_multiple_initial.docx
+++ b/test/docx/golden/lists_multiple_initial.docx
Binary files differ
diff --git a/test/docx/golden/lists_restarting.docx b/test/docx/golden/lists_restarting.docx
index 71d98d3a7..7d9af8fb8 100644
--- a/test/docx/golden/lists_restarting.docx
+++ b/test/docx/golden/lists_restarting.docx
Binary files 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
--- a/test/docx/golden/nested_anchors_in_header.docx
+++ b/test/docx/golden/nested_anchors_in_header.docx
Binary files differ
diff --git a/test/docx/golden/notes.docx b/test/docx/golden/notes.docx
index c9a5d2b14..a8dd65878 100644
--- a/test/docx/golden/notes.docx
+++ b/test/docx/golden/notes.docx
Binary files differ
diff --git a/test/docx/golden/raw-blocks.docx b/test/docx/golden/raw-blocks.docx
index 5588fda63..aff753ade 100644
--- a/test/docx/golden/raw-blocks.docx
+++ b/test/docx/golden/raw-blocks.docx
Binary files differ
diff --git a/test/docx/golden/raw-bookmarks.docx b/test/docx/golden/raw-bookmarks.docx
index fe3787ddd..5e2f78177 100644
--- a/test/docx/golden/raw-bookmarks.docx
+++ b/test/docx/golden/raw-bookmarks.docx
Binary files differ
diff --git a/test/docx/golden/table_one_row.docx b/test/docx/golden/table_one_row.docx
index 292e7c654..3570f8668 100644
--- a/test/docx/golden/table_one_row.docx
+++ b/test/docx/golden/table_one_row.docx
Binary files 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
--- a/test/docx/golden/table_with_list_cell.docx
+++ b/test/docx/golden/table_with_list_cell.docx
Binary files differ
diff --git a/test/docx/golden/tables-default-widths.docx b/test/docx/golden/tables-default-widths.docx
index 422d394dd..e8e72c391 100644
--- a/test/docx/golden/tables-default-widths.docx
+++ b/test/docx/golden/tables-default-widths.docx
Binary files differ
diff --git a/test/docx/golden/tables.docx b/test/docx/golden/tables.docx
index 8b75b1b46..c126bf71b 100644
--- a/test/docx/golden/tables.docx
+++ b/test/docx/golden/tables.docx
Binary files 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
--- a/test/docx/golden/tables_separated_with_rawblock.docx
+++ b/test/docx/golden/tables_separated_with_rawblock.docx
Binary files differ
diff --git a/test/docx/golden/task_list.docx b/test/docx/golden/task_list.docx
index 55c7bad11..ee7674392 100644
--- a/test/docx/golden/task_list.docx
+++ b/test/docx/golden/task_list.docx
Binary files differ
diff --git a/test/docx/golden/track_changes_deletion.docx b/test/docx/golden/track_changes_deletion.docx
index 156641eb3..d75903032 100644
--- a/test/docx/golden/track_changes_deletion.docx
+++ b/test/docx/golden/track_changes_deletion.docx
Binary files differ
diff --git a/test/docx/golden/track_changes_insertion.docx b/test/docx/golden/track_changes_insertion.docx
index e764b7106..cadef7f74 100644
--- a/test/docx/golden/track_changes_insertion.docx
+++ b/test/docx/golden/track_changes_insertion.docx
Binary files differ
diff --git a/test/docx/golden/track_changes_move.docx b/test/docx/golden/track_changes_move.docx
index 2835b3bed..f56eb4185 100644
--- a/test/docx/golden/track_changes_move.docx
+++ b/test/docx/golden/track_changes_move.docx
Binary files 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
--- a/test/docx/golden/track_changes_scrubbed_metadata.docx
+++ b/test/docx/golden/track_changes_scrubbed_metadata.docx
Binary files differ
diff --git a/test/docx/golden/unicode.docx b/test/docx/golden/unicode.docx
index 33dcbe04e..c36954263 100644
--- a/test/docx/golden/unicode.docx
+++ b/test/docx/golden/unicode.docx
Binary files differ
diff --git a/test/docx/golden/verbatim_subsuper.docx b/test/docx/golden/verbatim_subsuper.docx
index 4909c2cea..493595fd6 100644
--- a/test/docx/golden/verbatim_subsuper.docx
+++ b/test/docx/golden/verbatim_subsuper.docx
Binary files differ