From: jprocter Date: Thu, 11 Mar 2010 17:04:54 +0000 (+0000) Subject: raise a warning if column annotation gets truncated. X-Git-Tag: Release_2_5~136 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d7f018c09e7831fad82d6c3b268a45a3854658ef;p=jalview.git raise a warning if column annotation gets truncated. --- diff --git a/src/jalview/io/AMSAFile.java b/src/jalview/io/AMSAFile.java index 20cf745..1fcda43 100644 --- a/src/jalview/io/AMSAFile.java +++ b/src/jalview/io/AMSAFile.java @@ -86,7 +86,11 @@ public class AMSAFile extends jalview.io.FastaFile { ch = aa.annotations[k].displayCharacter; } - + if (ch.length()>1) + { + this.warningMessage="Truncated column annotation to first letter."; + ch = ch.substring(0,1); + } out.append(ch); }