Skip to content

Commit

Permalink
fix(caption): honour carriage returns in datalayer description
Browse files Browse the repository at this point in the history
fix #2385
  • Loading branch information
yohanboniface committed Dec 19, 2024
1 parent 0e78d58 commit 0bc4900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/static/umap/js/modules/caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class Caption extends Utils.WithTemplate {
<p class="caption-item ${datalayer.cssId}">
<span class="datalayer-legend"></span>
<strong data-ref="toolbox"></strong>
<span data-ref="description"></span>
<span class="text" data-ref="description"></span>
</p>`
const [element, { toolbox, description }] = Utils.loadTemplateWithRefs(template)
if (datalayer.options.description) {
Expand Down

0 comments on commit 0bc4900

Please sign in to comment.