remove newlines from note comments

dev-debian-12
Hartmut Holzgraefe 2023-12-20 22:01:45 +00:00
rodzic 284552dc5b
commit d2cb8bd084
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -91,7 +91,7 @@ class NotesIndex(GeneralIndex):
point = Point(lat, lon)
try:
index_text = "Note %d - %s" % (n, note['properties']['comments'][0]['text'])
index_text = "Note %d - %s" % (n, note['properties']['comments'][0]['text'].replace('\n', ' '))
index_category.items.append(GeneralIndexItem(index_text[0:50], point, point, None))
except IndexError as e:
pass