Jinja2 for loop result formatting

Hello. I have the following for loop in jinja that works however the result gives me some weird indenting. Can anyone point me in the right direction. Or perhaps there is a different way to go about this.

      title: 'USPS Packages state changed'
      message: >
        {%- for attr in states.sensor.myusps_packages.attributes %}
        {%- if  attr not in ["attribution" , "friendly_name", "icon"]  %}
        {{attr.replace("_", " ")| capitalize}}: {{states.sensor.myusps_packages.attributes[attr] }}
        {%- endif %}
        {%- endfor %}
        {% if states.sensor.myusps_packages.state is defined %}Tracking: {{ states.sensor.myusps_packages.state }} {% endif %}