Skip to content
Snippets Groups Projects
Commit 3b522114 authored by tjc's avatar tjc
Browse files

fix to get the EMBl header written out

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@12082 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent ca45ca09
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,8 @@ public class ReadAndWriteEntry ...@@ -153,7 +153,8 @@ public class ReadAndWriteEntry
if(destination_type == DocumentEntryFactory.EMBL_FORMAT && if(destination_type == DocumentEntryFactory.EMBL_FORMAT &&
(entry.getHeaderText() == null || (entry.getHeaderText() == null ||
entry.getHeaderText().equals(""))) entry.getHeaderText().equals("") ||
entry.getHeaderText().startsWith("#")))
{ {
String name = file.getName(); String name = file.getName();
int ind = name.lastIndexOf("."); int ind = name.lastIndexOf(".");
...@@ -167,8 +168,7 @@ public class ReadAndWriteEntry ...@@ -167,8 +168,7 @@ public class ReadAndWriteEntry
"Location/Qualifiers\nFH\n"); "Location/Qualifiers\nFH\n");
entry.setHeaderText(header); entry.setHeaderText(header);
} }
if(include_diana_extensions) if(include_diana_extensions)
entry.save(file, destination_type, force, artemis_entry_information); entry.save(file, destination_type, force, artemis_entry_information);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment