DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge #301: IDML: text variables keep their text
aiongg123ee022b5fc
diff --cc crates/idml/src/import.rsindex 1d6948548,e3c62c4a3..4570a0694--- a/crates/idml/src/import.rs+++ b/crates/idml/src/import.rs@@@ -427,8 -405,10 +455,11 @@@ impl<'r> Importer<'r>if let Some(ix) = top.iter().find(|e| e.local() == "Index") {self.index_topics_of(ix, &[]);}+ for e in top.iter().filter(|e| e.local() == "TextVariable") {+ self.text_variable(e);+ }// Stories (ids first so frames can reference them).+ let mut pending_stories = Vec::new();for e in top.iter().filter(|e| e.local() == "Story") {let id = StoryId(self.alloc());if let Some(s) = e.get("Self") {@@@ -1858,7 -1844,11 +1971,11 @@@b.push(&designcraft_doc::OBJECT_MARK.to_string(), cf);}}- "Properties" | "Note" | "StoryPreference" | "InCopyExportOption" | "TextVariableInstance" => {}+ "TextVariableInstance" => {+ let t = self.text_variable_instance(c);+ b.push(&t, cf);+ }- "Properties" | "Note" | "TextFrame" | "StoryPreference" | "InCopyExportOption" => {}++ "Properties" | "Note" | "StoryPreference" | "InCopyExportOption" => {}_ => self.walk_story(c, b, pf, pchars, cf, brk),},Node::Pi(t, v) if t == "ACE" => {