From 347dccfa11b11c640920878f0eeeb98096105c96 Mon Sep 17 00:00:00 2001 From: Daniele Mori Date: Wed, 18 Nov 2026 13:15:15 +0100 Subject: [PATCH] craft-docx: a cut-off span gives an unsized kept column only its share (test) --- crates/docx/tests/it/fixtures.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/docx/tests/it/fixtures.rs b/crates/docx/tests/it/fixtures.rs index 66c8cd475..e1d4f798f 100644 --- a/crates/docx/tests/it/fixtures.rs +++ b/crates/docx/tests/it/fixtures.rs @@ -702,6 +702,11 @@ fn spanning_cells_size_a_gridless_table_as_in_word() { let Block::Table(t) = &*d.body[0] else { panic!() }; assert_eq!(t.grid.len(), 63); assert_eq!(t.grid[62], 50.0); + // With no width of its own there, the kept column takes its share of the span, not all of it. + let d = read_body(&format!("{ones}{ones}{}", tc(300, 2))); + let Block::Table(t) = &*d.body[0] else { panic!() }; + assert_eq!(t.grid.len(), 63); + assert_eq!(t.grid[62], 150.0); } #[test]