Skip to content

Commit a840b9a

Browse files
committed
Update template files for generating attribution #275
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 5901f23 commit a840b9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/attributecode/templates/default_html.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</h3>
3333
{% if about_object.license.value %}
3434
<p>This component is licensed under
35-
{% for license_key in about_object.license.value %} {{ license_key }}{% if not loop.last %},{% endif %}{% endfor %}
35+
{{ about_object.license.value }}
3636
{% endif %}
3737
{% if about_object.copyright.value %}
3838
<pre>{{about_object.copyright.value}}</pre>
@@ -43,7 +43,7 @@
4343
{% endfor %}
4444
{% endif %}
4545
{% if about_object.license.value %}
46-
{% for license_key in about_object.license.value %}
46+
{% for license_key in about_object.license.value.split() %}
4747
{% if license_key in common_licenses %}
4848
<p>Full text of
4949
<a class="{{ license_key }}" href="#component-license-{{ license_key }}">

src/attributecode/templates/default_json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": "{{ about_object.version.value }}"{% if about_object.license.value -%},{%- endif %}
1010
{%- endif %}
1111
{% if about_object.license.value -%}
12-
"license": "{% for license_key in about_object.license.value %}{{ license_key }}{% if not loop.last %}, {% endif %}{% endfor %}"{% if about_object.copyright.value -%},{%- endif %}
12+
"license": "{{ about_object.license.value }}"
1313
{%- endif %}
1414
{% if about_object.copyright.value -%}
1515
"copyrigth": "{{ about_object.copyright.value }}"

0 commit comments

Comments
 (0)