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