Skip to content

Commit

Permalink
fix: Indentation missing after attach
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezanet committed Aug 29, 2023
1 parent 6622447 commit 23ddec3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Husky/Services/XmlIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public void Save(string path, XElement document)
{
var settings = new XmlWriterSettings
{
OmitXmlDeclaration = true
OmitXmlDeclaration = true,
Indent = true,
CloseOutput = true
};
using var xw = XmlWriter.Create(path, settings);
document.Save(xw);
Expand Down

0 comments on commit 23ddec3

Please sign in to comment.