]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Adjust some newlines/spacings.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 5 Jun 2022 16:35:20 +0000 (18:35 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 5 Jun 2022 16:35:20 +0000 (18:35 +0200)
wrpylib/templates/sledrun_wikitext.txt

index d5bc0e4f3067adbbbf7a4d5f0dc69d1b34ef4920..110fb3d3e53c72eeb12b437cf5718824fb24b92c 100644 (file)
@@ -81,9 +81,8 @@
 {{ public_transport_description | trim }}
 {%- else -%}
 ''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''
 {{ public_transport_description | trim }}
 {%- else -%}
 ''Hier wird die Anreise mit öffentlichen Verkehrsmitteln beschrieben.''
-{%- endif %}
-
-{% for pt_stop in public_transport_stops -%}
+{% endif %}
+{% for pt_stop in public_transport_stops %}
 * {{ h.list_template('Haltestelle', [pt_stop.municipality, pt_stop.name_local, h.json_pos_ele_position(pt_stop.get('position', {})), h.json_pos_ele_elevation(pt_stop.get('position', {}))]) }}
 {%- if pt_stop.note %} ({{ pt_stop.note }}){% endif %}
 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
 * {{ h.list_template('Haltestelle', [pt_stop.municipality, pt_stop.name_local, h.json_pos_ele_position(pt_stop.get('position', {})), h.json_pos_ele_elevation(pt_stop.get('position', {}))]) }}
 {%- if pt_stop.note %} ({{ pt_stop.note }}){% endif %}
 {% for template_name in ['monitor_template', 'route_arrival_template', 'route_departure_template'] -%}
@@ -98,7 +97,7 @@
 {%- endif %}
 ** {% if pt_line.timetable_template is defined %}{{ h.json_template(pt_line.timetable_template) }}
    {%- else %}{{ pt_line.name }}{% endif %}
 {%- endif %}
 ** {% if pt_line.timetable_template is defined %}{{ h.json_template(pt_line.timetable_template) }}
    {%- else %}{{ pt_line.name }}{% endif %}
-{%- endfor %}
+{%- endfor -%}
 {% for link in public_transport_links -%}
 {% if loop.first -%}
 * '''Fahrplan''':
 {% for link in public_transport_links -%}
 {% if loop.first -%}
 * '''Fahrplan''':
 ** {{ weblink(link) }}
 {%- endfor %}
 
 ** {{ weblink(link) }}
 {%- endfor %}
 
+
 == Anreise mit dem Auto ==
 {% if car_description -%}
 {{ car_description | trim }}
 == Anreise mit dem Auto ==
 {% if car_description -%}
 {{ car_description | trim }}