From 64720de9a37b3db26d25ce9a7561ee288689441d Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 12 Oct 2026 18:01:40 -0400 Subject: [PATCH] Fix a brace lost in the rebase --- crates/pptx/src/read/mod.rs | 1 + crates/pptx/src/read/shapes.rs | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/pptx/src/read/mod.rs b/crates/pptx/src/read/mod.rs index 2bfe02b9..692cfe56 100644 --- a/crates/pptx/src/read/mod.rs +++ b/crates/pptx/src/read/mod.rs @@ -513,6 +513,7 @@ fn walk_shapes_mut(shapes: &mut [deckcraft_model::Shape], f: &mut dyn FnMut(&mut walk_shapes_mut(children, f); } } +} /// `a:tblStyleLst`: the table styles the file defines. fn table_styles(imp: &mut Imp, part: &Part, root: &El) -> Vec { diff --git a/crates/pptx/src/read/shapes.rs b/crates/pptx/src/read/shapes.rs index 0c454255..ed6fd8e4 100644 --- a/crates/pptx/src/read/shapes.rs +++ b/crates/pptx/src/read/shapes.rs @@ -404,11 +404,8 @@ fn table(imp: &mut Imp, part: &Part, tbl: &El) -> Table { // A style the file defines is drawn from its definition (by its GUID). // DeckCraft's own styles (written with GUIDs derived from their ids) map back to them. let up = id.trim().to_ascii_uppercase(); - t.style = if imp.table_style_ids.contains(&up) && !crate::tables::is_own_guid(&up) { - up - } else { - crate::tables::style_from_guid(id.trim()) - }; + t.style = + if imp.table_style_ids.contains(&up) && !crate::tables::is_own_guid(&up) { up } else { crate::tables::style_from_guid(id.trim()) }; } } t.cols = tbl