reformat wiki osm post message

This commit is contained in:
Tykayn 2023-02-17 10:13:50 +01:00 committed by tykayn
parent 23dca076c4
commit 5453e2cb25
1 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import {getSourceOfDescriptorPageContent} from "./osm_get_description_picture.mj
const __dirname = path.resolve();
// select one line of table to override description
// const selectionOverrideOfSectionTable = 2;
// const selectionOverrideOfSectionTable = 19;
// const selectionOverrideOfLineTable = 7;
// select randomly a line
@ -228,9 +228,11 @@ function checkExistenceOfWebPage(url) {
function makePostMessageFromObj(result) {
return `
# [Le tag OSM du jour : ${result.key}=${result.value} ](${result.link}) 🗺🏷
# Le tag OSM du jour : ${result.key}=${result.value} 🗺🏷
${result.link}
${result.description ? result.description.trim() : ''}
> ${result.long_desc ? result.long_desc.trim() : ''}
${result.long_desc ? result.long_desc.trim() : ''}
#osm #openstreetmap #wiki #rtfw
`
}