From 60c2b07f9b0924842178262b53744038a78db1aa Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 10 Oct 2024 10:32:37 +0200 Subject: [PATCH] fix: honour carriage returns in permanent credits fix #2197 --- umap/static/umap/js/umap.controls.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 815ee1dc..0863e048 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -453,17 +453,13 @@ U.PermanentCreditsControl = L.Control.extend({ }, onAdd: function () { - const paragraphContainer = L.DomUtil.create( + this.paragraphContainer = L.DomUtil.create( 'div', - 'umap-permanent-credits-container' + 'umap-permanent-credits-container text' ) - const creditsParagraph = L.DomUtil.create('p', '', paragraphContainer) - - this.paragraphContainer = paragraphContainer this.setCredits() this.setBackground() - - return paragraphContainer + return this.paragraphContainer }, setCredits: function () {