Skip to content

Commit d3df699

Browse files
committed
Avoid getting lots of changed test files when building on Windows.
1 parent 0d357fd commit d3df699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/swagger-parser/src/test/java/io/swagger/parser/JsonToYamlFileDuplicator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ private static void processFile(File next, Path inputDirectory, Path outputDirec
4242

4343
final JsonNode jsonNode = DeserializationUtils.deserializeIntoTree(fileContents, next.toString());
4444

45-
final String yamlOutput = Yaml.mapper().writerWithDefaultPrettyPrinter().writeValueAsString(jsonNode);
46-
45+
final String yamlOutput = Yaml.mapper().writerWithDefaultPrettyPrinter().writeValueAsString(jsonNode)
46+
.replaceAll("\\n", System.getProperty("line.separator"));
4747

4848
final String relativePath = "./" + next.toString().replace(inputDirectory.toString(), "").replace(".json", ".yaml");
4949

0 commit comments

Comments
 (0)