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 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-10 15:52:46 -04:00
co-authored by Claude Opus 5.5
parent 502c588690
commit c6392e6380
+3 -1
View File
@@ -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,