mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Remove trailing whitespace when copying
This commit is contained in:
parent
88470b38cd
commit
34d789bf82
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -249,7 +249,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% 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 %}
|
{% for script in config.extra_javascript %}
|
||||||
{{ script | script_tag }}
|
{{ script | script_tag }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -60,7 +60,7 @@ function extract(el: HTMLElement): string {
|
|||||||
? copy.getAttribute("data-copy")!
|
? copy.getAttribute("data-copy")!
|
||||||
: el.innerText
|
: el.innerText
|
||||||
el.removeAttribute("data-md-copying")
|
el.removeAttribute("data-md-copying")
|
||||||
return text
|
return text.trimEnd()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------------
|
/* ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user