JAL-1316 compact '' to '
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 14 Jun 2013 15:18:23 +0000 (16:18 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 14 Jun 2013 15:18:23 +0000 (16:18 +0100)
src/jalview/io/NewickFile.java

index d653811..9ed1491 100755 (executable)
@@ -357,6 +357,10 @@ public class NewickFile extends FileParse
           int nl = qnodename.stringMatched().length();
           nodename = new String(qnodename.stringMatched().substring(1,
                   nl - 1));
+          // unpack any escaped colons
+          com.stevesoft.pat.Regex xpandquotes = com.stevesoft.pat.Regex.perlCode("s/''/'/");
+          String widernodename = xpandquotes.replaceAll(nodename);
+          nodename=widernodename;
           // jump to after end of quoted nodename
           nextcp = fcp + nl + 1;
           parsednodename=true;