Bloody whitespace...

This commit is contained in:
Nicolò P 2025-10-24 15:31:47 +02:00
parent c8de489ead
commit 262540e735

View File

@ -156,12 +156,9 @@ Utils.parseMarkers = function(text) {
if (matches.length) {
matches.forEach(match => {
const replacement = `
<a data-action="marker#go modal#close" data-controller="marker" data-marker-coords-value="${match.groups.coords}">
${match.groups.content}
</a>
`;
text = text.replace(match.groups.marker, replacement);
const replacement = `<a data-action="marker#go modal#close" data-controller="marker" data-marker-coords-value="${match.groups.coords}">
${match.groups.content}</a>`;
text = text.replace(match.groups.marker, replacement.trim());
});
}