diff --git a/core/models/caves.py b/core/models/caves.py index c31eb6f..c6c47de 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -224,7 +224,8 @@ class Cave(TroggleModel): n = 0 res += r if n == 0: - res += ", " + prevR + if res: + res += ", " + prevR else: res += "–" + prevR return res diff --git a/templates/cave.html b/templates/cave.html index 4fd0939..93a6ab9 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -457,7 +457,7 @@ div#scene { {% if cave.kataster_number %} {{ cave.kataster_number|safe }} {% if cave.entrancelist %} - - {{ cave.entrancelist|safe }} + {{ cave.entrancelist|safe }} {% endif %} {% if cave.unofficial_number %}
({{ cave.unofficial_number|safe }})