From a672a69c3054306cf6b72764e40491f49846ce1f 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 a4c80bc613..0987e1283e 100644 --- a/OneMore/Models/Page.cs +++ b/OneMore/Models/Page.cs @@ -66,10 +66,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)) + )); + } } }