*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / IfStatement.java
index aebef7b..e424d23 100644 (file)
@@ -16,7 +16,7 @@ public class IfStatement extends Statement {
   public Else els;
 
   /**
-   * Create a new If statement
+   * Create a new If statement.
    * @param condition the condition
    * @param statement a statement or a block of statements
    * @param elseifs the elseifs
@@ -46,11 +46,9 @@ public class IfStatement extends Statement {
     final StringBuffer buff = new StringBuffer(tabString(tab));
     buff.append("if (");
     buff.append(condition.toStringExpression()).append(") ");
-    buff.append("\n");
     buff.append(statement.toString(tab+1));
     for (int i = 0; i < elseifs.length; i++) {
-      ElseIf elseif = elseifs[i];
-      buff.append(elseif.toString(tab+1));
+      buff.append(elseifs[i].toString(tab+1));
       buff.append("\n");
     }
     if (els != null) {