fix indentation and ftdetect