From 375a7d14a156804a7b2771e7bd813e17f2f8397e Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 27 Aug 2018 16:50:20 +0100 Subject: [PATCH] JAL-3061 / JAL-3053 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/datamodel/Annotation.java b/src/jalview/datamodel/Annotation.java index ae29417..f6919cd 100755 --- a/src/jalview/datamodel/Annotation.java +++ b/src/jalview/datamodel/Annotation.java @@ -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); } -- 1.7.10.2