Title: `Copy` button copies line numbers · Issue #251 · python/python-docs-theme · GitHub
Open Graph Title: `Copy` button copies line numbers · Issue #251 · python/python-docs-theme
X Title: `Copy` button copies line numbers · Issue #251 · python/python-docs-theme
Description: To reproduce, copy any code-block with :linenos: on this page, using the "Copy" button. The result: >>> 1class Rock: ... 2 def __await__(self): ... 3 value_sent_in = yield 7 ... 4 print(f"Rock.__await__ resuming with value: {value_sent_i...
Open Graph Description: To reproduce, copy any code-block with :linenos: on this page, using the "Copy" button. The result: >>> 1class Rock: ... 2 def __await__(self): ... 3 value_sent_in = yield 7 ... 4 print(f"Rock.__aw...
X Description: To reproduce, copy any code-block with :linenos: on this page, using the "Copy" button. The result: >>> 1class Rock: ... 2 def __await__(self): ... 3 value_sent_in = yield 7 ... ...
Opengraph URL: https://github.com/python/python-docs-theme/issues/251
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Copy` button copies line numbers","articleBody":"To reproduce, copy any code-block with `:linenos:` on [this page](https://docs.python.org/3.15/howto/a-conceptual-overview-of-asyncio.html#a-conceptual-overview-of-asyncio), using the \"Copy\" button.\n\nThe result:\n\n```\n\u003e\u003e\u003e 1class Rock:\n... 2 def __await__(self):\n... 3 value_sent_in = yield 7\n... 4 print(f\"Rock.__await__ resuming with value: {value_sent_in}.\")\n... 5 return value_sent_in\n... 6\n... 7async def main():\n... 8 print(\"Beginning coroutine main().\")\n... 9 rock = Rock()\n[...]\n```\n\ncc @tomasr8 ","author":{"url":"https://github.com/StanFromIreland","@type":"Person","name":"StanFromIreland"},"datePublished":"2025-08-30T14:54:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/251/python-docs-theme/issues/251"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4bb3106-0def-ce42-8df4-fac482d2e9c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CED2:A87A4:2730DD0:37158BA:6970FC08 |
| html-safe-nonce | 9a4f2515603445d2d6aaaf6dc1304f340ac0485bf8efd378a78fd70e6c4c0801 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUQyOkE4N0E0OjI3MzBERDA6MzcxNThCQTo2OTcwRkMwOCIsInZpc2l0b3JfaWQiOiIyNzA3Mzg2NDk5MDI2MDIzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b6c6bfe1f0da4b7235ed04b412ecddb3cd6e35f0a5449fbef3d1bc1352b1bf7 |
| hovercard-subject-tag | issue:3369197801 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/python-docs-theme/251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/841cf94fe0ef05db86c911105f070bd777c090e0ac307bd0673d40d2d0795252/python/python-docs-theme/issues/251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/841cf94fe0ef05db86c911105f070bd777c090e0ac307bd0673d40d2d0795252/python/python-docs-theme/issues/251 |
| og:image:alt | To reproduce, copy any code-block with :linenos: on this page, using the "Copy" button. The result: >>> 1class Rock: ... 2 def __await__(self): ... 3 value_sent_in = yield 7 ... 4 print(f"Rock.__aw... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | StanFromIreland |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b239ebed690c3053869ff31a3b7597834c25673659d63e7b6fd6a9b5d7853de |
| turbo-cache-control | no-preview |
| go-import | github.com/python/python-docs-theme git https://github.com/python/python-docs-theme.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 93341818 |
| octolytics-dimension-repository_nwo | python/python-docs-theme |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93341818 |
| octolytics-dimension-repository_network_root_nwo | python/python-docs-theme |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | aeacfd55297f3de5395c83f200ac35d1f474115e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width