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:
1e13e95
)
JAL-653 trim initial tab in sequence feature ATTRIBUTES
author
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 19 Feb 2015 15:12:04 +0000
(15:12 +0000)
committer
James Procter
<jprocter@ls30857.local>
Fri, 5 Jun 2015 11:56:46 +0000
(12:56 +0100)
src/jalview/io/FeaturesFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/FeaturesFile.java
b/src/jalview/io/FeaturesFile.java
index
2009d9d
..
a9ad665
100755
(executable)
--- 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_]*) <value> ; and add as