Could SED auto-indent in this case:

Code:
if(something or other is true)
do this stuff here;



should become:

Code:
if(something or other is true)
    do this stuff here;



basically: if there's a ; somewhere after an if statement and there's no { between the two, AND there's a line break between the two, then indent the line after the if...?

Last edited by Germanunkol; 08/03/09 20:01.

~"I never let school interfere with my education"~
-Mark Twain