From 88b71dbed49772e5fdd9f650133214b52b53d048 Mon Sep 17 00:00:00 2001 From: Steven Cohn Date: Wed, 29 Nov 2023 15:56:36 -0500 Subject: [PATCH] preserve defs #1122 --- OneMore/Models/Page.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/OneMore/Models/Page.cs b/OneMore/Models/Page.cs index 2ea19846f1..be48effb35 100644 --- a/OneMore/Models/Page.cs +++ b/OneMore/Models/Page.cs @@ -65,10 +65,15 @@ private void ComputeHashes(XElement root) // 1st generation child elements of the Page foreach (var child in root.Elements()) { - child.Add(new XAttribute( - HashAttributeName, - algo.GetHashString(child.ToString(SaveOptions.DisableFormatting)) - )); + if (child.Name.LocalName != "TagDef" && + child.Name.LocalName != "QuickStyleDef" && + child.Name.LocalName != "Meta") + { + child.Add(new XAttribute( + HashAttributeName, + algo.GetHashString(child.ToString(SaveOptions.DisableFormatting)) + )); + } } }