ClickHouse / ClickHouse/click-ui

CodeBlock add an extra-line on copy/paste

Open
#611 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
135
Forks
33
Avg merge
2d 13h
Merged PRs (30d)
19

Description

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](https://github.com/user-attachments/assets/6b16b96f-1521-4e06-a6f4-c5722375005c)

Result in no extra-lines

![Image](https://github.com/user-attachments/assets/576509b7-997f-4557-ab62-7876e7cd2235)

- `wrapLines=true`

![Image](https://github.com/user-attachments/assets/6b16b96f-1521-4e06-a6f4-c5722375005c)

Results in extra-lines:

![Image](https://github.com/user-attachments/assets/91008fbb-9a45-49db-b980-8c52caf5205a)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.