formating-ergo #790

Merged
philipp merged 7 commits from formating-ergo into main 2024-11-11 13:34:37 +01:00
Showing only changes of commit eb49a829c6 - Show all commits

View File

@ -7,13 +7,15 @@
<summary>Dirty Thirty</summary> <summary>Dirty Thirty</summary>
<p> <p>
<div class="border-r border-l"> <div class="border-r border-l">
{% for stat in thirty %} <textarea style="width: 100%; height: 300px;">
{% set names = stat.name | split(pat=" ") %}{% set lastname_index = names | length - 1 %}{% set lastname = names[lastname_index] %}{{ lastname }}&#9; {%- for stat in thirty %}
{% for name in names %} {%- set names = stat.name | split(pat=" ") %}{% set lastname_index = names | length - 1 %}{% set lastname = names[lastname_index] %}{{ lastname }}&#9;
{%- for name in names -%}
{% if loop.index != lastname_index +1 %}{{ name }}{% endif %} {% if loop.index != lastname_index +1 %}{{ name }}{% endif %}
{% endfor %} {%- endfor -%}
&#9;{{ stat.dob }}&#9;{{ stat.weight }}&#9;{{ stat.sex }}&#9;&#9;DLI&#9;{{ stat.result }} &#9;{{ stat.dob }}&#9;{{ stat.weight }}&#9;{{ stat.sex }}&#9;&#9;DLI&#9;{{ stat.result }}&#13;&#10;
{% endfor %} {%- endfor -%}
</textarea>
</div> </div>
</p> </p>
</details> </details>
@ -21,17 +23,15 @@
<summary>Dirty Dozen</summary> <summary>Dirty Dozen</summary>
<p> <p>
<div class="border-r border-l"> <div class="border-r border-l">
{% for stat in dozen %} <textarea style="width: 100%; height: 300px;">
{% set names = stat.name | split(pat=" ") %} {%- for stat in dozen -%}
{% set lastname_index = names | length - 1 %} {%- set names = stat.name | split(pat=" ") %}{% set lastname_index = names | length - 1 %}{% set lastname = names[lastname_index] %}{{ lastname }}&#9;
{% set lastname = names[lastname_index] %} {%- for name in names -%}
{{ lastname }};
{% for name in names %}
{% if loop.index != lastname_index +1 %}{{ name }}{% endif %} {% if loop.index != lastname_index +1 %}{{ name }}{% endif %}
{% endfor %} {%- endfor -%}
;{{ stat.dob }};{{ stat.weight }};{{ stat.sex }};DLI;{{ stat.result }} &#9;{{ stat.dob }}&#9;{{ stat.weight }}&#9;{{ stat.sex }}&#9;&#9;DLI&#9;{{ stat.result }}&#13;&#10;
<br /> {%- endfor -%}
{% endfor %} </textarea>
</div> </div>
</p> </p>
</details> </details>