remove unnecessary whitespace and fix {% endresppnse %} indentation