Update formatter.py

newline and tab should only be added if response is empty