JAL-727
[jalview.git] / src / MCview / PDBChain.java
index c7eec35..779b4f0 100755 (executable)
@@ -66,7 +66,18 @@ public class PDBChain
     this.pdbid = pdbid.toLowerCase();
     this.id = id;
   }
-
+  /**
+   * character used to write newlines 
+   */
+  protected String newline = System.getProperty("line.separator");
+  public void setNewlineString(String nl)
+  {
+    newline = nl;
+  }
+  public String getNewlineString()
+  {
+    return newline;
+  }
   public String print()
   {
     String tmp = "";
@@ -75,7 +86,7 @@ public class PDBChain
     {
       tmp = tmp + ((Bond) bonds.elementAt(i)).at1.resName + " "
               + ((Bond) bonds.elementAt(i)).at1.resNumber + " " + offset
-              + "\n";
+              + newline;
     }
 
     return tmp;