Skip to content

Commit

Permalink
Fix LT-21388: Prserve 'xml' namespace on attributes while merging
Browse files Browse the repository at this point in the history
* This will keep the spaces from being dropped
  • Loading branch information
jasonleenaylor committed Nov 28, 2024
1 parent 4d87b23 commit a36abb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2010-2016 SIL International
// Copyright (c) 2010-2016 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

using System;
Expand All @@ -21,7 +21,7 @@ internal static void WriteNestedFile(string newPathname, XmlNode root)
{
using (var writer = XmlWriter.Create(newPathname, CanonicalXmlSettings.CreateXmlWriterSettings()))
{
XmlUtils.WriteNode(writer, root.OuterXml, new HashSet<string>());
XmlUtils.WriteNode(writer, root.OuterXml, new HashSet<string>(), new HashSet<string> { "xml" });
}
}

Expand Down

0 comments on commit a36abb9

Please sign in to comment.