Skip to content

Commit

Permalink
Changed xml mapping writer to use System.lineSeparator instead of \n.
Browse files Browse the repository at this point in the history
  • Loading branch information
GinoCanessa committed Aug 6, 2024
1 parent 594b57f commit 7441123
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7441123

Please sign in to comment.