JAL-727
[jalview.git] / src / jalview / io / AppletFormatAdapter.java
index 5eb4d2b..d42157b 100755 (executable)
@@ -117,7 +117,18 @@ public class AppletFormatAdapter
   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
    * 
@@ -441,7 +452,7 @@ public class AppletFormatAdapter
         throw new Exception(
                 "Implementation error: Unknown file format string");
       }
-
+      afile.setNewlineString(newline);
       afile.addJVSuffix(jvsuffix);
 
       afile.setSeqs(alignment.getSequencesArray());