From c6392e63806c937b68ff809c75892500509bd088 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 10 Oct 2026 15:52:46 -0400 Subject: [PATCH] Fix-up: chartex frames use the (open, close) anchor tags after merging #161 onto the move-only anchor change Co-Authored-By: Claude Opus 5.5 --- crates/xlsx/src/drawing.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/xlsx/src/drawing.rs b/crates/xlsx/src/drawing.rs index 28fa67b61..d3b206135 100644 --- a/crates/xlsx/src/drawing.rs +++ b/crates/xlsx/src/drawing.rs @@ -294,7 +294,9 @@ pub fn write_drawing(sheet: &Sheet, theme: &Theme, objs: &[Obj<'_>]) -> String { } Obj::Chart(ch, rid) if crate::chartex::is_chartex(ch.kind) => { // Chartex frames come with a fallback for readers that don't know them. - s.push_str(&anchor_open(sheet, &ch.anchor)); + let (open, close) = anchor_open(sheet, &ch.anchor); + close_tag = close; + s.push_str(&open); let (prefix, ns) = crate::chartex::requires(ch.kind); let _ = write!( s,