Extra Newline Added When Copying Code Blocks - Feature or Bug? #580
Unanswered
ZhangEnlin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
CN
复制代码块时自动在末尾添加换行符是设计如此还是bug?
当使用默认主题并点击代码块的复制按钮时,复制的内容末尾总会多出一个换行符。
例如,当复制只有一行代码的代码块并粘贴到CMD(Windows命令提示符)里时,它总会弹出一个警告:“您将粘贴包含多行的文本”。这样基本我就要放弃使用复制按钮而选择原始的鼠标拖动复制。
EN
When using the default theme and clicking the copy button on code blocks, an extra newline character is always appended to the end of the copied content.
For example, when copying a code block containing only one line of code and pasting it into CMD (Windows Command Prompt), it always shows the warning: "You are about to paste text containing multiple lines." Because of this, I'm basically forced to abandon the copy button and resort to the traditional mouse selection method for copying.
Environment
vuepress: 2.0.0-rc.26
@vuepress/theme-default: 2.0.0-rc.120
Beta Was this translation helpful? Give feedback.
All reactions