Skip to content

Commit babb19c

Browse files
authored
Fix self-copying button (#133)
1 parent 5d66535 commit babb19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/beeware_docs_tools/overrides/assets/javascripts/copy_button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ codeblocks.forEach((pre) => {
1616

1717
// Excludes the button div, and the Pygments-tagged spans that are the console/doscon
1818
// shell prompt and the code output of a given command.
19-
const exclude = ["div.copy-button", "span.gp", "span.go"]
19+
const exclude = ["div.copy-button", "div.copy-button-copied", "span.gp", "span.go"]
2020

2121
function filterText(target, exclusions) {
2222
// Clone as to not modify the live DOM.

0 commit comments

Comments
 (0)