Honor line breaks in SMP route descriptions

buefy-0.9
Manuel Kasper 2023-05-30 20:03:02 +02:00
rodzic ed7b27ae8b
commit 05765e9562
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -48,7 +48,7 @@ export default {
routes.push({
id: track.hdr_id,
title: track.track_title,
htmlDescription: '<p>' + this.escapeHtml(track.track_notes) + '</p><p><small>Track imported from <a href="https://www.sotamaps.org" target="_blank">SMP</a></small></p>',
htmlDescription: '<p>' + this.escapeHtml(track.track_notes).replace(/\n/g, '<br />') + '</p><p><small>Track imported from <a href="https://www.sotamaps.org" target="_blank">SMP</a></small></p>',
description: track.track_notes,
author: track.callsign,
distance,