Skip to content

Commit 97b7d78

Browse files
andreyvstefano-maggiolo
authored andcommitted
Fix newlines in plain text ranking
Due to trim_blocks being enabled in Jinja environment, the plain text template didn't actually output newlines after each ranking entry. The simplest fix is to add the missing newline manually.
1 parent e5b5843 commit 97b7d78

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cms/server/admin/templates/ranking.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{% for p in contest.participations|sort(attribute="total_score")|reverse %}
44
{% if not p.hidden %}
55
{{ "%20s"|format(p.user.username) }} {{ "%30s"|format("%s %s"|format(p.user.first_name, p.user.last_name)) }}{% if show_teams %}{{ "%30s"|format(p.team.name if p.team else "") }}{% endif %} {% for task in contest.tasks %}{% set t_score, t_partial = p.scores[loop.index0] %}{{ "%%13.%dlf"|format(task.score_precision)|format(t_score) }}{% if t_partial %}*{% else %} {% endif %} {% endfor %}{% set total_score, partial = p.total_score %}{{ "%%7.%dlf"|format(contest.score_precision)|format(total_score) }}{% if partial %}*{% else %} {% endif %}
6+
67
{% endif %}
78
{% endfor %}
89
{% endblock core %}

0 commit comments

Comments
 (0)