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 aa45ef5 commit 0a7da72
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 @@ -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))
));
}
}
}

Expand Down

0 comments on commit 0a7da72

Please sign in to comment.