Closed SteveGiralt closed 1 month ago
<para style="default-sm">
{% for contact in unassigned_contacts|get_dict_item:office %}
{{- contact.name -}}{%- if contact.team -%}
({{- contact.team -}})
{%- endif -%}
{%- if not forloop.last %}, {% endif -%}
{% endfor -%}
</para>
This code results in a syntax error
My Code:
Output: John Doe, Jane Doe
After formatter runs the code becomes:
Output: John Doe , Jane Doe
Expected Behavior: Don't insert the extra space between first contact.name and comma