Skip to content

Commit 8a284f5

Browse files
committed
fix comma spacing and extra comma at end of modules list
1 parent c764990 commit 8a284f5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

_includes/download/board.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ <h3>CircuitPython {{ version.version }}</h3>
160160
{% else %}
161161
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/en/latest/shared-bindings/{{ module_name }}">
162162
{% endif %}
163-
{{ module_name }}
164-
</a>{% if module_name != version.modules[version.modules.size - 1] %}, {% endif %}
163+
{{ module_name }}</a>{% unless forloop.last %}, {% endunless %}
165164
{% endfor %}
166165
</span>
167166
</p>
@@ -172,8 +171,7 @@ <h3>CircuitPython {{ version.version }}</h3>
172171
<span class="download-modules {% if version.stable %}stable{% else %}unstable{% endif %}">
173172
{% for module_name in version.frozen_libraries %}
174173
<a target="_blank" class="library-link" href="https://docs.circuitpython.org/projects/{{ module_name | split: 'adafruit_' | last }}">
175-
{{ module_name }}
176-
</a>{% if module_name != version.frozen_libraries[version.frozen_libraries.size - 1] %}, {% endif %}
174+
{{ module_name }}</a>{% unless forloop.last %}, {% endunless %}
177175
{% endfor %}
178176
</span>
179177
</p>

0 commit comments

Comments
 (0)