buildframework/helium/sf/java/antlint/src/com/nokia/helium/antlint/ant/types/CheckPythonTasks.java
changeset 628 7c4a911dc066
parent 588 c7c26511138f
--- a/buildframework/helium/sf/java/antlint/src/com/nokia/helium/antlint/ant/types/CheckPythonTasks.java	Wed Jun 16 16:51:40 2010 +0300
+++ b/buildframework/helium/sf/java/antlint/src/com/nokia/helium/antlint/ant/types/CheckPythonTasks.java	Fri Aug 13 14:59:05 2010 +0300
@@ -18,10 +18,10 @@
 
 import java.io.File;
 import java.io.FileOutputStream;
+import java.io.IOException;
 import java.io.PrintWriter;
 import java.util.ArrayList;
 import java.util.List;
-import java.io.IOException;
 
 import org.apache.tools.ant.BuildException;
 import org.dom4j.Document;
@@ -93,8 +93,9 @@
             PrintWriter output = new PrintWriter(new FileOutputStream(file));
             if (!text.equals("")) {
                 output.write("def abc():");
-                for (String line : text.split("\n"))
+                for (String line : text.split("\n")) {
                     output.write("    " + line + "\n");
+                }
             }
             output.close();
         } catch (IOException e) {