fabpot/Twig — pull request #1018 by Koc (2013-02-27 22:16:46+00:00)
Title: Added "normalize_whitespace" filter

Use case:

```jinja
{#

generation #}
{% block title %}
{%- filter normalize_whitespace %}
{% if foo %}
{{ foo.title }}
{% if bar %}
/ {{ bar.title }}
{% endif %}
/
{% endif %}
/ {{ parent() }}
{% endfilter -%}
{% endblock %}
```

TODO:
- [ ] add documentation if this PR can be accepted
- [ ] consider adding "spaceless" filter (IMHO actually it is filter, not tag)