Formatting
[jalview.git] / src / jalview / commands / RemoveGapColCommand.java
index d3aebdb..1e9b832 100644 (file)
@@ -1,7 +1,8 @@
 package jalview.commands;\r
-  /*\r
+\r
+/*\r
  * Jalview - A Sequence Alignment Editor and Viewer\r
- * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
  *\r
  * This program is free software; you can redistribute it and/or\r
  * modify it under the terms of the GNU General Public License\r
@@ -20,7 +21,8 @@ package jalview.commands;
 \r
 import jalview.datamodel.*;\r
 \r
-public class RemoveGapColCommand  extends EditCommand\r
+public class RemoveGapColCommand\r
+    extends EditCommand\r
 {\r
   int columnsDeleted;\r
   public RemoveGapColCommand(String description,\r
@@ -32,7 +34,7 @@ public class RemoveGapColCommand  extends EditCommand
     int j, jSize = seqs.length;\r
 \r
     int startCol = -1, endCol = -1;\r
-    columnsDeleted=0;\r
+    columnsDeleted = 0;\r
 \r
     edits = new Edit[0];\r
 \r
@@ -48,7 +50,9 @@ public class RemoveGapColCommand  extends EditCommand
           if (!jalview.util.Comparison.isGap(seqs[j].getCharAt(i)))\r
           {\r
             if (delete)\r
+            {\r
               endCol = i;\r
+            }\r
 \r
             delete = false;\r
             break;\r
@@ -77,19 +81,18 @@ public class RemoveGapColCommand  extends EditCommand
 \r
     if (delete && startCol > -1)\r
     {\r
-       //This is for empty columns at the\r
-       //end of the alignment\r
+      //This is for empty columns at the\r
+      //end of the alignment\r
 \r
       this.appendEdit(DELETE_GAP, seqs,\r
-                        startCol - columnsDeleted,\r
-                        end - startCol +1,\r
-                        al,\r
-                        false);\r
+                      startCol - columnsDeleted,\r
+                      end - startCol + 1,\r
+                      al,\r
+                      false);\r
 \r
-      columnsDeleted += (end - startCol +1);\r
+      columnsDeleted += (end - startCol + 1);\r
     }\r
 \r
-\r
     performEdit(0);\r
   }\r
 \r