correct indentation and convert spaces to tabs