Update formatter.py

based on the comment new line and indent should only be added on empty responses.