JAL-3061 / JAL-3053
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 27 Aug 2018 15:50:20 +0000 (16:50 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 27 Aug 2018 15:50:20 +0000 (16:50 +0100)
Fixed broken StockholmFileTest tests
curlyWUSSsecondaryStructureForRNASequence
fullWUSSsecondaryStructureForRNASequence
by adding " ." as a recognised Annotation.isWhiteSpace displayCharacter
(which happens for StockholmFile '.' RNA SS annotations)

src/jalview/datamodel/Annotation.java

index ae29417..f6919cd 100755 (executable)
@@ -210,7 +210,10 @@ public class Annotation
     return ((value == 0f)
             && ((description == null) || (description.trim().length() == 0))
             && ((displayCharacter == null)
-                    || (displayCharacter.trim().length() == 0))
+                    || (displayCharacter.trim().length() == 0)
+                    || (displayCharacter.equals(" ."))) // RNA Stockholm blank
+                                                        // displayCharacter can
+                                                        // end up like this
             && (secondaryStructure == '\0' || (secondaryStructure == ' '))
             && colour == null);
   }