Skip to content

Commit

Permalink
Merge pull request stevencohn#1194 from stevencohn/1122-preserve-defs
Browse files Browse the repository at this point in the history
preserve defs
  • Loading branch information
stevencohn authored Nov 29, 2023
2 parents 65834cc + 9668766 commit 3e98ba9
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 3e98ba9

Please sign in to comment.