X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FSequenceAnnotationReport.java;h=2cc0cd5a565cabf1412ddbd6531cb6f7e3fcac2f;hb=0cbe9f1b595a51355953a932961a0256857d230e;hp=3624cd9544afa4eb986373e492cee3b7038a6185;hpb=a1672fb7a56762c9b138f76cdddfe750573db1af;p=jalview.git diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index 3624cd9..2cc0cd5 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -240,11 +240,11 @@ public class SequenceAnnotationReport /* * truncate overlong descriptions unless they contain an href - * (as truncation could leave corrupted html) + * before the truncation point (as truncation could leave corrupted html) */ int linkindex = description.toLowerCase().indexOf(" -1 - && linkindex < (MAX_DESCRIPTION_LENGTH); + && linkindex < MAX_DESCRIPTION_LENGTH; if (description.length() > MAX_DESCRIPTION_LENGTH && !hasLink) { description = description.substring(0, MAX_DESCRIPTION_LENGTH)