We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Starting with Sphinx 4.0.0 copying a block of code with :linenos: includes the line numbers along with the code when copied.
:linenos:
To Reproduce Use Sphinx 4.0.0 or later. Create an RST that references an external file, something like:
.. literalinclude:: array_backed_grid.py :caption: array_backed_grid.py :linenos:
Expected behavior The ability to copy code without line numbers. This worked fine with Sphinx 3.5.7 and before.Example:
Starting with 4.0.0 we get:
Sphinx copy button extension includes line numbers as well.
According to @mgeier the theme might need to be updated to support the new Sphinx 4.0.0 setup? See comments here: sphinx-doc/sphinx#9363
Environment info
The text was updated successfully, but these errors were encountered:
This will be fixed by #1123
Sorry, something went wrong.
Fixed by 380647d
docs: update sphinx-rtd-theme.
aa74956
Incorporate the fix for readthedocs/sphinx_rtd_theme#1168.
Update requirements_rtd.txt
99242d2
use sphinx <4.0 to avoid issues with code block line numbers readthedocs/sphinx_rtd_theme#1168
No branches or pull requests
Problem
Starting with Sphinx 4.0.0 copying a block of code with
:linenos:
includes the line numbers along with the code when copied.To Reproduce
Use Sphinx 4.0.0 or later. Create an RST that references an external file, something like:
Expected behavior
The ability to copy code without line numbers. This worked fine with Sphinx 3.5.7 and before.Example:
Starting with 4.0.0 we get:
Sphinx copy button extension includes line numbers as well.
According to @mgeier the theme might need to be updated to support the new Sphinx 4.0.0 setup? See comments here:
sphinx-doc/sphinx#9363
Environment info
The text was updated successfully, but these errors were encountered: