tab2spaces, line indent cleanup, ending spaces

all without htmlarea & $smarty