Jalview-JS/JAL-3253-applet does not recognize \r\n as OK
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 9 May 2019 19:10:47 +0000 (14:10 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 9 May 2019 19:10:47 +0000 (14:10 -0500)
test/jalview/io/StockholmFileTest.java

index e86c8ad..cdadf31 100644 (file)
@@ -837,7 +837,8 @@ public class StockholmFileTest
     String stockholmFile = sf.print(alWithSpaces.getSequencesArray(), true);
     Pattern noSpacesInRnaSSAnnotation = Pattern
             .compile("\\n#=GC SS_cons\\s+\\S{14}\\n");
-    Matcher m = noSpacesInRnaSSAnnotation.matcher(stockholmFile);
+    Matcher m = noSpacesInRnaSSAnnotation
+            .matcher(stockholmFile.replace("\r\n", "\n"));
     boolean matches = m.find();
     Assert.assertTrue(matches,
             "StockholmFile output does not contain expected output (may contain spaces):\n"