fix: honour carriage returns in permanent credits

fix #2197
This commit is contained in:
Yohan Boniface 2024-10-10 10:32:37 +02:00
parent 61de72ce85
commit 60c2b07f9b

View file

@ -453,17 +453,13 @@ U.PermanentCreditsControl = L.Control.extend({
}, },
onAdd: function () { onAdd: function () {
const paragraphContainer = L.DomUtil.create( this.paragraphContainer = L.DomUtil.create(
'div', 'div',
'umap-permanent-credits-container' 'umap-permanent-credits-container text'
) )
const creditsParagraph = L.DomUtil.create('p', '', paragraphContainer)
this.paragraphContainer = paragraphContainer
this.setCredits() this.setCredits()
this.setBackground() this.setBackground()
return this.paragraphContainer
return paragraphContainer
}, },
setCredits: function () { setCredits: function () {