http://jsbeautifier.org/ seems to format html correct. Maybe the double newline bug is caused by integration into PSPad and you can easily fix it?
@Jan When Einars beautifier work correct as PSPad plugins, they should be downloadable on pspad.com. And plugins should be sortable by update time or at least a date should be shown in the plugins list. -- <http://forum.pspad.com/read.php?2,62261,62361> PSPad freeware editor http://www.pspad.com
