{% load sponsors %}
<div id="wafer-sponsors" class="container">
  {% spaceless %}
    {% for package in packages %}
      {% if package.sponsors.exists %}
        {% for sponsor in package.sponsors.all %}
          {% sponsor_tagged_image sponsor "footer_logo" as logo_url %}
          <a href="{{ sponsor.url }}">
            {% if logo_url != '' %}
              <img src="{{ logo_url }}"
                   alt="{{ sponsor.name }}"
                   style="max-width: 200px; max-height:100px;"
                   title="{{ sponsor.name }}">
            {% else %}
              <span class="nologo">{{ sponsor.name }}</span>
            {% endif %}
          </a>
        {% endfor %}
        <br>
      {% endif %}
    {% endfor %}
  {% endspaceless %}
</div>

{% load sponsors %}
<div id="wafer-sponsors" class="container">
  {% for package in packages %}
    {% if package.sponsors.exists %}
      {% for sponsor in package.sponsors.all %}
        {% sponsor_tagged_image sponsor "footer_logo" as logo_url %}
          {% spaceless %}
          <a href="{{ sponsor.url }}">
            {% if logo_url != '' %}
              <img src="{{ logo_url }}"
                   alt="{{ sponsor.name }}"
                   style="max-width: 200px; max-height:100px;"
                   title="{{ sponsor.name }}">
            {% else %}
              <span class="nologo">{{ sponsor.name }}</span>
            {% endif %}
          </a>
          {% endspaceless %}
      {% endfor %}
      <br>
    {% endif %}
  {% endfor %}
</div>

Move spaceless to just aroudn the <a> tag
Move spaceless to just aroudn the <a> tag
