Skip to content

Commit aa07b62

Browse files
Don't copy line numbers (#270)
1 parent 602c4d9 commit aa07b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_docs_theme/static/copybutton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getCopyableText(rootElement) {
1616
}
1717
// Remove all elements with the "go" (Generic.Output),
1818
// "gp" (Generic.Prompt), or "gt" (Generic.Traceback) CSS class
19-
const elements = rootElement.querySelectorAll(".gp, .go, .gt")
19+
const elements = rootElement.querySelectorAll(".gp, .go, .gt, .linenos")
2020
for (const el of elements) {
2121
el.remove()
2222
}

0 commit comments

Comments
 (0)