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-727
[jalview.git]
/
src
/
jalview
/
io
/
AppletFormatAdapter.java
diff --git
a/src/jalview/io/AppletFormatAdapter.java
b/src/jalview/io/AppletFormatAdapter.java
index
5eb4d2b
..
d42157b
100755
(executable)
--- a/
src/jalview/io/AppletFormatAdapter.java
+++ b/
src/jalview/io/AppletFormatAdapter.java
@@
-117,7
+117,18
@@
public class AppletFormatAdapter
AlignFile afile = null;
String inFile;
AlignFile afile = null;
String inFile;
-
+ /**
+ * character used to write newlines
+ */
+ protected String newline = System.getProperty("line.separator");
+ public void setNewlineString(String nl)
+ {
+ newline = nl;
+ }
+ public String getNewlineString()
+ {
+ return newline;
+ }
/**
* check that this format is valid for reading
*
/**
* check that this format is valid for reading
*
@@
-441,7
+452,7
@@
public class AppletFormatAdapter
throw new Exception(
"Implementation error: Unknown file format string");
}
throw new Exception(
"Implementation error: Unknown file format string");
}
-
+ afile.setNewlineString(newline);
afile.addJVSuffix(jvsuffix);
afile.setSeqs(alignment.getSequencesArray());
afile.addJVSuffix(jvsuffix);
afile.setSeqs(alignment.getSequencesArray());