Filter empty items out of lists

The email template does this already when formatting the body of the
message. But the spreadsheet preview doesn’t, which means you get lists
like:
- thing
- thing
- None

This commit fixes that.

This was a pre-existing bug, but gonna roll it in with this PR.
This commit is contained in:
Chris Hill-Scott
2018-03-09 15:07:47 +00:00
parent f6f5faa361
commit 7609ad3f8c
2 changed files with 45 additions and 13 deletions

View File

@@ -83,7 +83,9 @@
{% if text is iterable and text is not string %}
<ul class="list list-bullet">
{% for item in text %}
<li>{{ item }}</li>
{% if item %}
<li>{{ item }}</li>
{% endif %}
{% endfor %}
</ul>
{% else %}