git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JAL-281 first line also checked for PhyloXML identification
[jalview.git]
/
src
/
jalview
/
io
/
IdentifyFile.java
diff --git
a/src/jalview/io/IdentifyFile.java
b/src/jalview/io/IdentifyFile.java
index
a4d6e8b
..
854a46e
100755
(executable)
--- a/
src/jalview/io/IdentifyFile.java
+++ b/
src/jalview/io/IdentifyFile.java
@@
-342,7
+342,8
@@
public class IdentifyFile
}
else // phylogenetic file?
{
- if (source.nextLine().startsWith("<phyloxml"))
+ if (data.startsWith("<phyloxml")
+ || source.nextLine().startsWith("<phyloxml"))
{
reply = FileFormat.PhyloXML;
break;