From: Ben Soares Date: Wed, 4 Mar 2020 11:05:01 +0000 (+0000) Subject: JAL-3468 small tidy X-Git-Tag: Develop-2_11_2_0-d20201215~58^2~7^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0cbe9f1b595a51355953a932961a0256857d230e;p=jalview.git JAL-3468 small tidy --- 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)