Bug. The auto-format code comes from an old version of Processing. They've since fixed a lot of the bugs in the Processing auto-format, but I haven't had a chance to port the improvements over to Arduino yet. It's on the todo list.