Content-Length: 260593 | pFad | https://github.com/python/python-docs-theme/issues/251

BB `Copy` button copies line numbers · Issue #251 · python/python-docs-theme · GitHub
Skip to content

Copy button copies line numbers #251

Description

@StanFromIreland

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_in}.")
...  5        return value_sent_in
...  6
...  7async def main():
...  8    print("Beginning coroutine main().")
...  9    rock = Rock()
[...]

cc @tomasr8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/python-docs-theme/issues/251

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy