Skip to content
Snippets Groups Projects
Commit 3c5e4e88 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Added a prettyXmlPrinter

parent 2b882e6f
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ import nl.lumc.sasc.biopet.utils.config.Configurable
import org.broadinstitute.gatk.queue.QScript
import scala.collection.mutable
import scala.xml.Node
import scala.xml.{PrettyPrinter, Node}
/**
* Created by pjvanthof on 04/12/15.
......@@ -141,7 +141,8 @@ object GearsKraken {
</krona>
val writer = new PrintWriter(outputFile)
writer.println(xml.copy(child = xml.child ++ createNodes(taxs)).toString())
val prettyXml = new PrettyPrinter(80, 2)
writer.println(prettyXml.format(xml.copy(child = xml.child ++ createNodes(taxs))))
writer.close()
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment