If I understood it correctly he also wants trailing and preceding spaces/tabs to be removed, so that code like
Code:
<html>
<body>
</body>
</html>
would also become
Code:
<html><body></body></html>
so a simple find/replace of newlines won't do. An editor that supports regular expressions would be able to do it, like UltraEdit, but if you want to do this on a lot of files then a command line utility would be better.