View Single Post
Old 2007-03-28, 10:03 AM   #5
MightyMidget
No matter how good you are at something, there's always about a million people better than you
 
MightyMidget's Avatar
 
Join Date: Apr 2006
Location: Sweden
Posts: 232
Send a message via ICQ to MightyMidget
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.
MightyMidget is offline   Reply With Quote