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.
This commit is contained in:
Andy Wilkinson
2017-03-07 18:37:27 +00:00
parent d3fdd0bef7
commit 6f7be570f7

View File

@@ -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;
}