Consistent indentation and trimming