Skip to content

Commit

Permalink
Remove trailing whitespace when copying
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Nov 14, 2023
1 parent 88470b3 commit 34d789b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

/* ----------------------------------------------------------------------------
Expand Down

0 comments on commit 34d789b

Please sign in to comment.