In How to parse the below Json data coming from Kafkatopic, a new user asked a question with JSON code blocks on a single, very long line. Instead of just editing the question directly, I wanted to guide the new user into writing questions with better formatting, so I suggested to the asker to edit the question to include line breaks in the code blocks to make it more readable.
Later, someone else proposed an edit that basically did what I was asking.
The visible result is the same (the question is now readable), but I think the outcome is slightly different in that the user didn't necessarily learn anything about how to get the most out of the site. The user may not understand why (or even notice that) the question was edited.
What is the preferred approach for this site? Do we prefer guiding new users, or do we prefer immediate edits?