Remove trailing whitespace when copying

This commit is contained in:
squidfunk 2023-11-14 09:41:17 +01:00
parent 88470b38cd
commit 34d789bf82
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
4 changed files with 6 additions and 6 deletions

View File

@ -249,7 +249,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.7b1f3e14.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.9d5bf7c6.min.js' | url }}"></script>
{% for script in config.extra_javascript %}
{{ script | script_tag }}
{% endfor %}

View File

@ -60,7 +60,7 @@ function extract(el: HTMLElement): string {
? copy.getAttribute("data-copy")!
: el.innerText
el.removeAttribute("data-md-copying")
return text
return text.trimEnd()
}
/* ----------------------------------------------------------------------------