From f94918a230ba58dd0ddcdd73a406dcabb1c2fc25 Mon Sep 17 00:00:00 2001 From: cyber-toad Date: Sat, 26 Oct 2024 14:50:49 +0200 Subject: [PATCH] [gpx] Use desc tag to export description for points/tracks Signed-off-by: cyber-toad --- data/test_data/gpx/export_test.gpx | 6 +++--- kml/serdes_gpx.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/test_data/gpx/export_test.gpx b/data/test_data/gpx/export_test.gpx index e4ad3c1d3d..d6ef83e97e 100644 --- a/data/test_data/gpx/export_test.gpx +++ b/data/test_data/gpx/export_test.gpx @@ -6,11 +6,11 @@ Point 1 - Point 1 + Point 1 <&"]]> - <&"]]> + <&"]]> Some random route @@ -38,7 +38,7 @@ <&"]]> - <&"]]> + <&"]]> 123 diff --git a/kml/serdes_gpx.cpp b/kml/serdes_gpx.cpp index 1d89cff465..2cb5d30e44 100644 --- a/kml/serdes_gpx.cpp +++ b/kml/serdes_gpx.cpp @@ -515,9 +515,9 @@ void SaveBookmarkData(Writer & writer, BookmarkData const & bookmarkData) } if (auto const description = GetDefaultLanguage(bookmarkData.m_description)) { - writer << kIndent2 << ""; + writer << kIndent2 << ""; SaveStringWithCDATA(writer, description.value()); - writer << "\n"; + writer << "\n"; } writer << "\n"; } @@ -550,9 +550,9 @@ void SaveTrackData(Writer & writer, TrackData const & trackData) } if (auto const description = GetDefaultLanguage(trackData.m_description)) { - writer << kIndent2 << ""; + writer << kIndent2 << ""; SaveStringWithCDATA(writer, description.value()); - writer << "\n"; + writer << "\n"; } if (auto const color = TrackColor(trackData); color != kDefaultTrackColor) {