git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a1672fb
)
JAL-3468 small tidy
author
Ben Soares
<bsoares@dundee.ac.uk>
Wed, 4 Mar 2020 11:05:01 +0000
(11:05 +0000)
committer
Ben Soares
<bsoares@dundee.ac.uk>
Wed, 4 Mar 2020 11:05:01 +0000
(11:05 +0000)
src/jalview/io/SequenceAnnotationReport.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/SequenceAnnotationReport.java
b/src/jalview/io/SequenceAnnotationReport.java
index
3624cd9
..
2cc0cd5
100644
(file)
--- 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
/*
* 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("<a ");
boolean hasLink = linkindex > -1
*/
int linkindex = description.toLowerCase().indexOf("<a ");
boolean hasLink = linkindex > -1
- && linkindex < (MAX_DESCRIPTION_LENGTH);
+ && linkindex < MAX_DESCRIPTION_LENGTH;
if (description.length() > MAX_DESCRIPTION_LENGTH && !hasLink)
{
description = description.substring(0, MAX_DESCRIPTION_LENGTH)
if (description.length() > MAX_DESCRIPTION_LENGTH && !hasLink)
{
description = description.substring(0, MAX_DESCRIPTION_LENGTH)