]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Avoid having the public transport line label printed twice next to each other.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 15 Jul 2022 16:18:50 +0000 (18:18 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 15 Jul 2022 16:18:50 +0000 (18:18 +0200)
wrpylib/templates/sledrun_wikitext.txt

index 6d7216e458eb283c0f71b47dfc05693845b4e3f3..895c1efa6a2e969972d8144851802f51e67daad9 100644 (file)
@@ -136,8 +136,10 @@ Leider ist keine Anreise mit öffentlichen Verkehrsmitteln möglich.
 * '''Fahrplan''':
 {% for pt_line in public_transport_lines -%}
 ** {% set space = joiner(" ") %}
 * '''Fahrplan''':
 {% for pt_line in public_transport_lines -%}
 ** {% set space = joiner(" ") %}
-   {%- if pt_line.name %}{{ space() }}{{ pt_line.name }}{% endif %}
+   {%- if pt_line.name %}{{ space() }}{{ pt_line.name }}
+   {%- else %}
    {%- if pt_line.label %}{{ space() }}{{ pt_line.label }}{% endif %}
    {%- if pt_line.label %}{{ space() }}{{ pt_line.label }}{% endif %}
+   {%- endif %}
    {%- if pt_line.timetable_template %}{{ space() }}{{ h.json_template(pt_line.timetable_template) }}{% endif %}
    {%- if pt_line.route %}{{ space() }}{{ pt_line.route }}{% endif %}
    {%- if pt_line.note %}{{ space() }}{{ pt_line.note }}{% endif %}
    {%- if pt_line.timetable_template %}{{ space() }}{{ h.json_template(pt_line.timetable_template) }}{% endif %}
    {%- if pt_line.route %}{{ space() }}{{ pt_line.route }}{% endif %}
    {%- if pt_line.note %}{{ space() }}{{ pt_line.note }}{% endif %}