sphinx-copybutton icon indicating copy to clipboard operation
sphinx-copybutton copied to clipboard

How can I remove linenos from the copied text?

Open zhyantao opened this issue 4 years ago • 2 comments

Describe the problem

I am using is sphinx_book_theme.

When I try to use copy button to copy the text, however, the linenos also included.

I just want to use linenos to view the line numbers, and I don’t want them to be copied to the clipboard.

Thank you so much~

Steps to reproduce

For example: website

And this is my conf.py.

zhyantao avatar Oct 23 '21 07:10 zhyantao

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Oct 23 '21 07:10 welcome[bot]

This is going to be fixed in https://github.com/executablebooks/sphinx-copybutton/pull/138

choldgraf avatar Oct 25 '21 02:10 choldgraf