I normally just accept these as they make the code easier to read, but sometimes there are other issues in the post that should have been fixed also. So, where do we draw the line?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
Code formatting is a valid edit if it is not very minor. In the example edit you provided the edit is very little and did not bring much readability to the post.
But sometimes it turns an unreadable question in a very readable with a few spaces added.
If the editor forgot to change other issues then just hit improve and fix it.