IDML export: placements in cells and footnotes embed their PDF layer choices

(cherry picked from commit c017ca777c)
This commit is contained in:
aiongg committed 2026-11-14 06:23:07 +00:00
1 parent 7579d0d987
commit eafc04a2e1
1 file changed
+3 -1
+3 -1
View File
@@ -236,7 +236,9 @@ pub(crate) fn from_craft(el: craft_xml::El) -> El {
.filter_map(|n| match n {
craft_xml::Node::El(e) => Some(Node::El(from_craft(e))),
craft_xml::Node::Text(t) => Some(Node::Text(t)),
craft_xml::Node::CData(t) => Some(Node::Text(t)),
// The parser joins CDATA to the text around it, so only trees built for export
// (`<Contents>` image data passed through `with_props`) carry sections here.
craft_xml::Node::CData(t) => Some(Node::CData(t)),
craft_xml::Node::Pi { target, data } => Some(Node::Pi(target, data.trim().to_string())),
craft_xml::Node::Comment(_) => None,
})