Remove commas from list of placeholders

Visually, the space between them is enough. Also the oxford comma thing didn’t
actuall work :|
This commit is contained in:
Chris Hill-Scott
2016-06-02 10:56:04 +01:00
parent acfe87e788
commit 53ec44a2d2

View File

@@ -3,10 +3,10 @@
{% from "components/page-footer.html" import page_footer %}
{% from "components/table.html" import list_table, text_field, index_field, index_field_heading %}
{% macro list_of_placeholders(placeholders, oxford_comma=False) %}
{% macro list_of_placeholders(placeholders) %}
{% for placeholder in placeholders %}
{% if loop.last and loop.length > 1 %}{% if oxford_comma %},{% endif %} and {% endif %}
<span class="placeholder">(({{ placeholder }}))</span>{% if not loop.last and loop.length != 2 %},{% endif %}
{% if loop.last and loop.length > 1 %} and {% endif %}
<span class="placeholder">(({{ placeholder }}))</span>
{% endfor %}
{% endmacro %}