Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy button on docs page copies line numbers along with code #1251

Closed
dhirajgagrai opened this issue Oct 25, 2022 · 3 comments
Closed

Copy button on docs page copies line numbers along with code #1251

dhirajgagrai opened this issue Oct 25, 2022 · 3 comments
Labels

Comments

@dhirajgagrai
Copy link

dhirajgagrai commented Oct 25, 2022

In the Quick start page, there are blocks of code which have a copy button. If copying through that button, it also adds line numbers to the clipboard.

I think it's a problem with the sphinx-copybutton extension. I found a reference to this issue here. It seems that they have fixed it.

@dhirajgagrai dhirajgagrai changed the title Copy button on docs page copies line numbers along with code . Copy button on docs page copies line numbers along with code Oct 25, 2022
@aaugustin
Copy link
Member

OK, this will get fixed after:

  1. sphinx-copybutton makes a release
  2. websockets makes a release (and docs are built with this new version)

Thank you for letting me know; I wasn't aware of the issue.

@aaugustin
Copy link
Member

  1. happened on Nov 15.

@aaugustin
Copy link
Member

I can confirm that this doesn't happen anymore with sphinx-copybutton==0.5.1.

Given that no other action is necessary — other than making a release — I will close this issue now.

Thank you for reporting it and diagnosing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants