Modify MakeTidy so it doesn't create an output file when we run the unit tests.
This commit is contained in:
parent
9a4a38b7c7
commit
d0fe1a818c
1 changed files with 1 additions and 5 deletions
|
@ -10,7 +10,6 @@ import java.io.StringWriter;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.w3c.tidy.Node;
|
|
||||||
import org.w3c.tidy.Tidy;
|
import org.w3c.tidy.Tidy;
|
||||||
|
|
||||||
public class MakeTidy {
|
public class MakeTidy {
|
||||||
|
@ -54,10 +53,7 @@ public class MakeTidy {
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
/*Node rootNode = */tidy. parse(new StringReader(value),sw);
|
/*Node rootNode = */tidy. parse(new StringReader(value),sw);
|
||||||
String outputStr = sw.toString();
|
String outputStr = sw.toString();
|
||||||
if (outFile != null /*&& log.isDebugEnabled()*/) {
|
log.debug("\nTidied Output:\n" + outputStr + "\n");
|
||||||
outFile.println("\nTidied Output:\n"+outputStr+"\n");
|
|
||||||
}
|
|
||||||
outFile.flush();
|
|
||||||
return outputStr;
|
return outputStr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue