Added end_with_newline setting