code: def spaceless(context, nodelists):
      
  
      from django.utils.html import strip_spaces_between_tags
      return strip_spaces_between_tags(nodelist.render(context).strip())
docs: Removes whitespace between HTML tags, including tab and newline characters.
  
      Example usage::
  
          {% spaceless %}
              <p>
                  <a href="foo/">Foo</a>
              </p>
          {% endspaceless %}
  
      This example would return this HTML::
  
          <p><a href="foo/">Foo</a></p>
  
      Only space between *tags* is normalized -- not space between tags and text.
      In this example, the space around ``Hello`` won't be stripped::
  
          {% spaceless %}
              <strong>
                  Hello
              </strong>
          {% endspaceless %}