JAL-653 trim initial tab in sequence feature ATTRIBUTES
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 19 Feb 2015 15:12:04 +0000 (15:12 +0000)
committerJames Procter <jprocter@ls30857.local>
Fri, 5 Jun 2015 11:56:46 +0000 (12:56 +0100)
src/jalview/io/FeaturesFile.java

index 2009d9d..a9ad665 100755 (executable)
@@ -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_]*) <value> ; and add as