Modify MakeTidy so it doesn't create an output file when we run the unit tests.

This commit is contained in:
jeb228 2010-02-08 15:45:52 +00:00
parent 9a4a38b7c7
commit d0fe1a818c

View file

@ -10,7 +10,6 @@ import java.io.StringWriter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.w3c.tidy.Node;
import org.w3c.tidy.Tidy;
public class MakeTidy {
@ -54,10 +53,7 @@ public class MakeTidy {
StringWriter sw = new StringWriter();
/*Node rootNode = */tidy. parse(new StringReader(value),sw);
String outputStr = sw.toString();
if (outFile != null /*&& log.isDebugEnabled()*/) {
outFile.println("\nTidied Output:\n"+outputStr+"\n");
}
outFile.flush();
log.debug("\nTidied Output:\n" + outputStr + "\n");
return outputStr;
}
}