Skip to content

Commit 500fee9

Browse files
authored
Merge pull request #78 from emotional-cities/jinja2-lists
Add comma separator when exporting multiple items
2 parents 46cffe1 + 7a6d565 commit 500fee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pluma/templates/metadata_template.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"email": [
3333
{"value" : "{{ contact.email }}"}
3434
]
35-
}
35+
}{{ "," if not loop.last }}
3636
{%- endfor %}
3737
],
3838
"themes": [
@@ -42,11 +42,11 @@
4242
{% for concept in theme.concepts %}
4343
{
4444
"id": "{{ concept }}"
45-
}
45+
}{{ "," if not loop.last }}
4646
{% endfor %}
4747
],
4848
"scheme": "{{ theme.scheme_url }}"
49-
}
49+
}{{ "," if not loop.last }}
5050
{%- endfor %}
5151
],
5252
"formats": [

0 commit comments

Comments
 (0)