Use detect indent properly