Skip to content

Commit 794ec64

Browse files
committed
Preserve whitespace in nuspec file, to keep old formatting
1 parent 00b2be5 commit 794ec64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnturnedRedistUpdateTool/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static async Task<int> Main(string[] args)
8484

8585
Console.WriteLine($"Found Unturned v{version} ({buildId})");
8686

87-
var doc = XDocument.Load(nuspecFilePath);
87+
var doc = XDocument.Load(nuspecFilePath, LoadOptions.PreserveWhitespace);
8888
XNamespace ns = "http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd";
8989
var versionElement = doc.Root.Element(ns + "metadata").Element(ns + "version");
9090
if (versionElement != null)

0 commit comments

Comments
 (0)