From: Konrad H. <ko...@gm...> - 2010-07-28 19:53:08
|
Hello. I am using JTidy to modify some nodes in an HTML source file, but discovered that the output file is displaying incorrectly when viewed in a web browser (due to the pretty printing). Is pretty printing executed upon loading the file: Tidy tidy = new Tidy(); Document document = tidy.parseDOM(htmlFileInputStream, null); or when calling: tidy.pprint(document, modifiedFileOutputStream); ? If the latter, is there a way to output the modified document (with updated nodes) to file without having the pretty print execute? In other words, I basically want the resulting HTML file to look exactly the same as the original HTML file, except for the few nodes that I updated. Is that possible? Thanks. |