From febd9e0ee1b6c05b3179c54c5c5254ea2af28a41 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 19 Feb 2015 15:12:04 +0000 Subject: [PATCH] JAL-653 trim initial tab in sequence feature ATTRIBUTES --- src/jalview/io/FeaturesFile.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.10.2