Skip to content

Commit

Permalink
preserve defs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored and weissm committed Dec 5, 2023
1 parent 0d33704 commit 9f85968
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions OneMore/Models/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
));
}
}
}

Expand Down

0 comments on commit 9f85968

Please sign in to comment.