Skip to content

Commit

Permalink
Removed uncessary attribute removal
Browse files Browse the repository at this point in the history
  • Loading branch information
weissm committed Jan 6, 2025
1 parent ed23372 commit ed05c5c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions OneMore/Commands/File/Markdown/MarkdownConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ public void RewriteHeadings()
}
void replaceAtributes(XElement quickstyle, double spaceBefore, double spaceAfter)
{
quickstyle.Attributes().Where(a => a.Name == "spaceBefore").Remove();
quickstyle.SetAttributeValue("spaceBefore", spaceBefore.ToString("####0.00", CultureInfo.InvariantCulture));
quickstyle.Attributes().Where(a => a.Name == "spaceAfter").Remove();
quickstyle.SetAttributeValue("spaceAfter", spaceAfter.ToString("####0.00", CultureInfo.InvariantCulture));
}

Expand Down

0 comments on commit ed05c5c

Please sign in to comment.