We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14e4606 commit 39f24ddCopy full SHA for 39f24dd
python_docs_theme/static/copybutton.js
@@ -8,7 +8,7 @@ function getCopyableText(rootElement) {
8
for (const el of tracebacks) {
9
while (
10
el.nextSibling &&
11
- (el.nextSibling.nodeType !== Node.DOCUMENT_NODE ||
+ (el.nextSibling.nodeType !== Node.ELEMENT_NODE ||
12
!el.nextSibling.matches(".gp, .go"))
13
) {
14
el.nextSibling.remove()
0 commit comments