From 03c6ae67a19000331ee990a272d8a3eea8809aae Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 13 Nov 2026 08:30:32 -0500 Subject: [PATCH] Preserve canonical preference attribute order --- crates/idml/src/model/preferences.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/idml/src/model/preferences.rs b/crates/idml/src/model/preferences.rs index 00c293fa5..c3cd6dc40 100644 --- a/crates/idml/src/model/preferences.rs +++ b/crates/idml/src/model/preferences.rs @@ -109,11 +109,13 @@ impl DocumentPreferences { } if let Some(value) = self.primary_text_frame { attrs.push(("CreatePrimaryTextFrame".into(), bool_string(value))); - attrs.push(("MasterTextFrame".into(), bool_string(value))); } if let Some(value) = self.column_guides_locked { attrs.push(("ColumnGuideLocked".into(), bool_string(value))); } + if let Some(value) = self.primary_text_frame { + attrs.push(("MasterTextFrame".into(), bool_string(value))); + } attrs.push(("SnippetImportUsesOriginalLocation".into(), "false".into())); attrs }