paularmstrong/swig — pull request #193 by potench (2013-02-08 23:10:53+00:00)
Title: added {% spaceless %} tag support

I find the {% spaceless %} tag useful in Django and thought I'd contribute it back as a default tag.

### Included:
* {% spaceless %} tag added as default tag
* tests for leading, trailing, and "between-tag" whitespace trimming.

### Use:

```django
{% spaceless %}

1

2

4

{% endspaceless }%
```

```html

1
2

4

```

### Notes

I borrowed the "between-tag" whitespace stripping RegEx `>\s+<` directly from the [Django {% spaceless %} function](https://github.com/django/django/blob/master/django/utils/html.py#L135-L138) and added leading and trailing whitespace trimming which doesn't appear to be a function of the Django function (but perhaps should be?)