From 7441123b847f8f48eb8ccf33c3ed8c8eabb10f8f Mon Sep 17 00:00:00 2001 From: Gino Canessa Date: Tue, 6 Aug 2024 09:36:43 -0500 Subject: [PATCH] Changed xml mapping writer to use System.lineSeparator instead of \n. --- src/main/java/org/hl7/fhir/tools/publisher/PageProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/hl7/fhir/tools/publisher/PageProcessor.java b/src/main/java/org/hl7/fhir/tools/publisher/PageProcessor.java index 4d5e683..84045e8 100644 --- a/src/main/java/org/hl7/fhir/tools/publisher/PageProcessor.java +++ b/src/main/java/org/hl7/fhir/tools/publisher/PageProcessor.java @@ -6802,7 +6802,7 @@ private String genLogicalMappings(ResourceDefn logical, String genlevel) throws java.io.Writer writer = new java.io.FileWriter(exceptionsFile); final LSSerializer xmlWriter = impl.createLSSerializer(); - xmlWriter.setNewLine("\n"); + xmlWriter.setNewLine(System.lineSeparator()); xmlWriter.getDomConfig().setParameter("format-pretty-print", true); xmlWriter.getDomConfig().setParameter("xml-declaration", false); String xml = xmlWriter.writeToString(newExceptionsDoc);