Jalview-JS/JAL-3253-applet newick Regex coding error fix JAL-3271
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 22 May 2019 13:15:03 +0000 (08:15 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 23 May 2019 01:05:06 +0000 (20:05 -0500)
src/jalview/io/NewickFile.java
src/jalview/project/Jalview2XML.java

index 5a98605..7596db4 100755 (executable)
@@ -165,7 +165,7 @@ public class NewickFile extends FileParse
         return null;
       }
       return codePerl == null ? Platform.newRegex(code, code2)
-              : Platform.newRegexPerl(code2);
+              : Platform.newRegexPerl(codePerl);
     }
     return REGEX[id];
   }
index 801632f..4ad61d9 100644 (file)
@@ -800,6 +800,9 @@ public class Jalview2XML
           String fileName, JarOutputStream jout)
   {
 
+    // BH: Question: What is this Dataset for, as it seems to
+    // duplicate the actual XML file data.
+
     for (String dssids : dsses.keySet())
     {
       AlignFrame _af = dsses.get(dssids);
@@ -2856,7 +2859,11 @@ public class Jalview2XML
         }
         String name = (jarentry == null ? null : jarentry.getName());
         if (name != null && name.endsWith(".xml")
-                && name.indexOf(" Dataset for ") < 0 // BH 2019.05.21
+        // The question here is what to do with the two
+        // .xml files in the jvp file. They are identical?
+        // && name.indexOf(" Dataset for ") < 0 // BH 2019.05.21
+        // we need to talk about how to avoid the full duplication of
+        // reading these.
         )
         {
           JAXBContext jc = JAXBContext