Open
Description
Describe the bug
When we copy a code block with emphasize-lines it adds an additional carrier return to the copied text
To Reproduce
Steps to reproduce the behavior:
- Create a sphinx directive like this one:
.. code-block::
:emphasize-lines: 1
[cisco@centos]$ docker exec -it cl_app_1 bash
root@5109156083d2:/app#
- Create documentation
- Click on copy button
- Paste text in an editor and see the extra line in between line 1 and 2
Expected behavior
Text should be copied as is
Environment
- Python Version: 3.9.2
- Sphinx v3.5.1
- Operating System: 11.2.3
Additional context
Add any other context about the problem here.