convert tabs to spaces and saneify the indents