writer fix
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 24 Dec 2025 22:51:12 +0000 (14:51 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 24 Dec 2025 22:51:12 +0000 (14:51 -0800)
rust/pspp/src/spv/write.rs

index 74266feb9e849358925c9bb641c6c3855e5e3d7f..e6f91e54223482c1875e1fb0a9e4c076151e1041 100644 (file)
@@ -181,7 +181,12 @@ where
     {
         self.container(structure, item, "vtx:text", |w| {
             w.with_attribute(("type", text.type_.as_xml_str()))
-                .write_text_content(BytesText::new(&text.content.display(()).to_string()))?;
+                .write_inner_content(|w| {
+                    w.create_element("html").write_text_content(BytesText::new(
+                        &text.content.display(()).to_string(),
+                    ))?;
+                    Ok(())
+                })?;
             Ok(())
         })
     }