diff --git a/python_docs_theme/static/copybutton.js b/python_docs_theme/static/copybutton.js index de071f4..e1ad458 100644 --- a/python_docs_theme/static/copybutton.js +++ b/python_docs_theme/static/copybutton.js @@ -16,7 +16,7 @@ function getCopyableText(rootElement) { } // Remove all elements with the "go" (Generic.Output), // "gp" (Generic.Prompt), or "gt" (Generic.Traceback) CSS class - const elements = rootElement.querySelectorAll(".gp, .go, .gt") + const elements = rootElement.querySelectorAll(".gp, .go, .gt, .linenos") for (const el of elements) { el.remove() }