From a48105d825b3329b77870e94aa8a4457777d8719 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 17 Oct 2025 14:36:51 -0700 Subject: [PATCH] work --- rust/doc/src/spv/legacy-detail-xml.md | 2 +- rust/pspp/src/output/pivot.rs | 3 +- rust/pspp/src/output/spv/legacy.rs | 44 ++++++++++++++++++--------- 3 files changed, 33 insertions(+), 16 deletions(-) diff --git a/rust/doc/src/spv/legacy-detail-xml.md b/rust/doc/src/spv/legacy-detail-xml.md index f7e77f0c32..cdbcc4af1c 100644 --- a/rust/doc/src/spv/legacy-detail-xml.md +++ b/rust/doc/src/spv/legacy-detail-xml.md @@ -671,7 +671,7 @@ text :usesReference=int? :definesReference=int? :position=(subscript | superscript)? - :style=ref style + :style=ref style? => TEXT ``` diff --git a/rust/pspp/src/output/pivot.rs b/rust/pspp/src/output/pivot.rs index 4dce028d29..b68d936e34 100644 --- a/rust/pspp/src/output/pivot.rs +++ b/rust/pspp/src/output/pivot.rs @@ -1240,7 +1240,7 @@ impl<'de> Deserialize<'de> for Color { formatter.write_str("\"#rrggbb\" or \"rrggbb\" or web color name") } - fn visit_borrowed_str(self, v: &'de str) -> Result + fn visit_str(self, v: &str) -> Result where E: serde::de::Error, { @@ -3107,6 +3107,7 @@ mod test { assert_eq!(Color::from_str("rgb(12,34,56)"), Ok(Color::new(12, 34, 56))); assert_eq!(Color::from_str("#abcdef"), Ok(Color::new(0xab, 0xcd, 0xef))); assert_eq!(Color::from_str("abcdef"), Ok(Color::new(0xab, 0xcd, 0xef))); + assert_eq!(Color::from_str("transparent"), Ok(Color::TRANSPARENT)); } #[test] diff --git a/rust/pspp/src/output/spv/legacy.rs b/rust/pspp/src/output/spv/legacy.rs index 209f553e59..7763db5cbd 100644 --- a/rust/pspp/src/output/spv/legacy.rs +++ b/rust/pspp/src/output/spv/legacy.rs @@ -56,12 +56,14 @@ pub struct Visualization { extension: Option, user_source: UserSource, - variables: Vec, + /*#[serde(rename = "$value")] + variables: Vec,*/ categorical_domain: Option, graph: Graph, - lf1: LabelFrame, + #[serde(default, rename = "labelFrame")] + label_frames: Vec, container: Option, - lf2: LabelFrame, + #[serde(rename = "style")] styles: Vec