From de2c06fa15fbd5f2a85611a9fa3b777f4b6fec51 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 27 Oct 2022 14:35:04 +0200 Subject: [PATCH] improved how entries are formatted --- webclient/src/views/view/view-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webclient/src/views/view/view-view.js b/webclient/src/views/view/view-view.js index 99b86f66b..c049624b3 100644 --- a/webclient/src/views/view/view-view.js +++ b/webclient/src/views/view/view-view.js @@ -323,10 +323,10 @@ navigatum.registerView("view", { let editStr = ""; Object.entries(currentEdits).forEach(([key, value]) => { - editStr += `"${key}": {coords: {lat: ${value.coords.lat}, lon: ${value.coords.lon}}}\n`; + editStr += `"${key}": { lat: ${value.coords.lat}, lon: ${value.coords.lon} }\n`; }); - return `${actionMsg}\n\`\`\`\n${editStr}\n\`\`\``; + return `${actionMsg}\n\`\`\`yaml\n${editStr}\`\`\``; }, openFeedbackForm: function () { // The feedback form is opened. This may be prefilled with previously corrected coordinates.