I don't believe in auto-formatting at all really, but for a case like that, you would probably just turn the formatter off for that section. The ones I'm familiar with all let you turn it off for a segment with a magic comment.