From: Jim Procter Date: Thu, 19 Feb 2015 15:12:04 +0000 (+0000) Subject: JAL-653 trim initial tab in sequence feature ATTRIBUTES X-Git-Tag: Release_2_10_0~296^2~164 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=febd9e0ee1b6c05b3179c54c5c5254ea2af28a41;p=jalview.git JAL-653 trim initial tab in sequence feature ATTRIBUTES --- diff --git a/src/jalview/io/FeaturesFile.java b/src/jalview/io/FeaturesFile.java index 2009d9d..a9ad665 100755 --- a/src/jalview/io/FeaturesFile.java +++ b/src/jalview/io/FeaturesFile.java @@ -515,9 +515,11 @@ public class FeaturesFile extends AlignFile if (st.hasMoreTokens()) { StringBuffer attributes = new StringBuffer(); + boolean sep = false; while (st.hasMoreTokens()) { - attributes.append("\t" + st.nextElement()); + attributes.append((sep ? "\t" : "") + st.nextElement()); + sep = true; } // TODO validate and split GFF2 attributes field ? parse out // ([A-Za-z][A-Za-z0-9_]*) ; and add as