JAL-1863 allow RNA secondary structure rows exported by Jalview to be imported again
authorJim Procter <jprocter@issues.jalview.org>
Thu, 3 Sep 2015 21:19:34 +0000 (22:19 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 3 Sep 2015 21:28:20 +0000 (22:28 +0100)
src/jalview/io/AnnotationFile.java

index 6cce211..dcca491 100755 (executable)
@@ -1301,8 +1301,8 @@ public class AnnotationFile
         }
       }
       if (hasSymbols
-              && (token.equals("H") || token.equals("E")
-                      || token.equals("S") || token.equals(" ")))
+              && (token.length() == 1 && "()<>[]{}AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
+                      .contains(token)))
       {
         // Either this character represents a helix or sheet
         // or an integer which can be displayed