From a36abb955d9e4859ec5b5f7d6668dca769fe2d94 Mon Sep 17 00:00:00 2001 From: Jason Naylor Date: Wed, 27 Nov 2024 10:32:27 -0800 Subject: [PATCH] Fix LT-21388: Prserve 'xml' namespace on attributes while merging * This will keep the spaces from being dropped --- .../DomainServices/FileWriterService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LibFLExBridge-ChorusPlugin/DomainServices/FileWriterService.cs b/src/LibFLExBridge-ChorusPlugin/DomainServices/FileWriterService.cs index f2ffd44d2..45bc544d1 100644 --- a/src/LibFLExBridge-ChorusPlugin/DomainServices/FileWriterService.cs +++ b/src/LibFLExBridge-ChorusPlugin/DomainServices/FileWriterService.cs @@ -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; @@ -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()); + XmlUtils.WriteNode(writer, root.OuterXml, new HashSet(), new HashSet { "xml" }); } }