Another attempt at fixing OperationBlockMacroTests on Windows
It appears that Asciidoctor uses \n on all platforms but when the
expected content is read in on Windows it uses \r\n as the line
endings are being changed when Git performs the clone.
@@ -134,7 +134,7 @@ public class OperationBlockMacroTests {
this.getClass().getResource("/operations/" + fileName + ".html").toURI());
String content = new String(Files.readAllBytes(filePath));
if (isWindows()) {
- return content.replace("\n", "\r\n");
+ return content.replace("\r\n", "\n");
}
return content;
}
