There's a separate program I use to "Beautify" HTML code that comes out all in one line.
http://prettydiff.com/
JavaScript is markup_beauty.js (I think)
which I run using this file named
wsh.wsf (I'll attach it here. You'll need to rename it since forum didn't like my .wsf file but accepted a .txt file)
and the command line to run it is:
cscript wsh.wsf /source:"name_of_your_file.html" /html:true
(on Windows)
I'll attach the
markup_beauty.js file too. (Again you'll have to rename it from .txt for the same reason.)
I'm not sure if
markup_beauty.js relies on other files. If so they are at
http://prettydiff.com/documentation.php
[EDIT: It's not clear that the licences for wsh.wsf and markup_beauty.js allow redistribution. Attachments deleted. They can be download from the page linked above.
The Mods.]