click-ui icon indicating copy to clipboard operation
click-ui copied to clipboard

CodeBlock add an extra-line on copy/paste

Open lio-p opened this issue 8 months ago • 1 comments

When copying code from the code block by selecting specific lines in the block and wrapLines is set to true, extra newlines are added to the copied snippet.

  • wrapLines=false

Image

Result in no extra-lines

Image

  • wrapLines=true

Image

Results in extra-lines:

Image

Not related, but also it would be great if the line number is not copied as part of the code snippet.

lio-p avatar Jun 16 '25 15:06 lio-p

Hi @lio-p, I wasn’t able to reproduce the issue. Could you check and let me know if it’s still happening?

elizabetdev avatar Aug 27 '25 09:08 elizabetdev