diff --git a/source/javascripts/app/_copy.js b/source/javascripts/app/_copy.js index f1e3a43..4dfbbb6 100644 --- a/source/javascripts/app/_copy.js +++ b/source/javascripts/app/_copy.js @@ -1,6 +1,6 @@ function copyToClipboard(container) { const el = document.createElement('textarea'); - el.value = container.textContent; + el.value = container.textContent.replace(/\n$/, ''); document.body.appendChild(el); el.select(); document.execCommand('copy');